Re: [R] eval() parse() and problem with square brackets

From: chao gai <chaogai_at_duineveld.demon.nl>
Date: Tue 23 Jan 2007 - 19:06:07 GMT

Jakub,

I was trying to simplify the situation in order to know where the fault happens.
Appearently, from Excel, you go to R, which does some query in an MS application ? The square brackets now make me think that is Excel again, but I do not know.
Had I known that I would not have touched your question with a pole, I never used that stuff.

Kees

On Tuesday 23 January 2007 19:43, Jakub Jurdziak wrote:
> Hi,
>
> unfortunately I'm not able to check how it behaves at the moment.
>
> Even if it works ok, it is impossible to drop eval and parse in my
> situation.
>
> Iím using RExcel and RInterface.RRun to execute code from the string:
> "g_1 <- sqlQuery(cnn_1, "select aa from bb.[cc\\dd].ee")". RExcel adds
> eval and parse and finally R gets the transformed code:
> eval(parse(text="g_1 <- sqlQuery(cnn_1, \"select aa from
> bb.[cc\\dd].ee\")")).
>
> Regards



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Wed Jan 24 06:11:51 2007

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Tue 23 Jan 2007 - 20:30:33 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.