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

From: Peter Dalgaard <p.dalgaard_at_biostat.ku.dk>
Date: Tue 23 Jan 2007 - 19:08:54 GMT

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\")")).
>
>
Hmm, I can see how that might lose you the backslash, but not the brackets...



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:16:22 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 - 19:31:25 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.