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

Peter Dalgaard p.dalgaard at biostat.ku.dk
Tue Jan 23 20:08:54 CET 2007


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...



More information about the R-help mailing list