Re: [R] cannot dyn.load dll from path

2012-01-19 Thread Duncan Murdoch
On 19/01/2012 1:42 PM, Adrian Dragulescu wrote: It doesn't work even if I set it with \\. My path has a mixture of \\ and / and other entries work fine. if (file.exists("C:/Temp/XML.dll")) { Sys.setenv(path = paste("C:\\Temp;C:/Temp;", Sys.getenv("path"), sep="")) dyn.load("XML.dll")

Re: [R] cannot dyn.load dll from path

2012-01-19 Thread Adrian Dragulescu
It doesn't work even if I set it with \\. My path has a mixture of \\ and / and other entries work fine. if (file.exists("C:/Temp/XML.dll")) { Sys.setenv(path = paste("C:\\Temp;C:/Temp;", Sys.getenv("path"), sep="")) dyn.load("XML.dll") # doesn't find it! } Error in inDL(x, as.logical(l

Re: [R] cannot dyn.load dll from path

2012-01-19 Thread Duncan Murdoch
On 19/01/2012 11:19 AM, Adrian Dragulescu wrote: Hello, I'm on Windows, and according to the documentation R searches along the search path when looking for dll's for dyn.load. For illustration, I've copied the XML.dll from package XML in the C:/Temp folder if (file.exists("C:/Temp/XML.dll

[R] cannot dyn.load dll from path

2012-01-19 Thread Adrian Dragulescu
Hello, I'm on Windows, and according to the documentation R searches along the search path when looking for dll's for dyn.load. For illustration, I've copied the XML.dll from package XML in the C:/Temp folder if (file.exists("C:/Temp/XML.dll")) { Sys.setenv(path = paste("C:/Temp;", S