[R] Eval and parse function applied on file path

Tomislav Puđa
Sat, 18 Oct 2008 20:37:49 -0000

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
2: unrecognized escape removed from "d:\diplomski_rad\testOutput\temp"

I try different combination but without luck. What's the problem ?

Regards,
Tomislav

	[[alternative HTML version deleted]]