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

From: Peter Dalgaard <>
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... mailing list PLEASE do read the posting guide 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 Please read the posting guide before posting to the list.