Re: [R] Eval and parse function applied on file path

2008-10-18 Thread Prof Brian Ripley
On Sat, 18 Oct 2008, Tomislav Puđa wrote: Hi, I have problem when evaluating string containing file path. path <-"inputDirectory='d:\\diplomski_rad\\testOutput\\temp'" print(eval(parse(text=path))) After executing code, I get [1] "d:diplomski_rad\testOutput\temp" Warning messages: 1: '\d' is

[R] Eval and parse function applied on file path

2008-10-18 Thread Tomislav Puđa
Hi, I have problem when evaluating string containing file path. path <-"inputDirectory='d:\\diplomski_rad\\testOutput\\temp'" print(eval(parse(text=path))) After executing code, I get [1] "d:diplomski_rad\testOutput\temp" Warning messages: 1: '\d' is an unrecognized escape in a character string