Re: [R] UNC Windows path beginning with backslashes

2011-09-03 Thread Henrik Bengtsson
[I found this message still sitting in my outbox - better late than never] Hi, it should have been "K:" instead of "K" in those examples. However, forget about what I said, because it (subst) turns out it will not work with UNC paths, cf. http://support.microsoft.com/kb/218740. Sorry for the no

Re: [R] UNC Windows path beginning with backslashes

2011-08-19 Thread Keith Jewell
Thanks Henrik, but I have 2 reasons for not using that approach: A) If I don't map the drive until after R starts the UNC path is already present in several places I know about and probably some I don't, leading to the problems I started with. So reason 'B' doesn't really matter to me, but as a

Re: [R] UNC Windows path beginning with backslashes

2011-08-18 Thread Henrik Bengtsson
I think you can also do this from within R (e.g. in your .Rprofile) using the R.utils package; library("R.utils") System$mapDriveOnWindows("K", "campden\\shares\\Workgroup\\Stats") driveLetters <- System$getMappedDrivesOnWindows() System$unmapDriveOnWindows("K") These methods utilize 'subst'

Re: [R] UNC Windows path beginning with backslashes

2011-08-18 Thread Keith Jewell
Just to close this off, in case it helps anyone else in a similar situation... Background: I have R installed on a UNC share with a site library named by major and minor version, thus: \\campden\shares\Workgroup\Stats 'root' \\campden\shares\Workgroup\Stats\R base for R related things \\campden

Re: [R] UNC Windows path beginning with backslashes: normalizePath bug??

2011-08-12 Thread Keith Jewell
Thanks Uwe. I'm aware (and have been forcefully reminded) that using a mapped drive avoids these problems. But there is no single drive letter which I can use site-wide, so I have problems with things like R_LIBS_SITE. As I've outlined I'm exploring a range of solutions, including mapping a dri

[R] UNC windows path beginning with backslashes: normalizePath bug??

2011-08-12 Thread Keith Jewell
Hi, Back in June I posted the message below, but had no replies. I've made a little progress since then so this is to update anyone interested (!) and to ask for comments. Brief problem statement: Under Windows, some parts of R don't handle UNC paths beginning with backslashes. Specifically a)

Re: [R] UNC windows path beginning with backslashes: normalizePath bug??

2011-08-11 Thread Uwe Ligges
This is extremely tricky since Windows does not always accept "//" rather than "\\". Additionally, there is not implemented system call in Windows, hence ?Sys.glob tells us a "partial emulation" is provided and "An attempt is made to handle UNC paths starting with a double backslash." As you h

[R] UNC windows path beginning with backslashes: normalizePath bug??

2011-08-11 Thread Keith Jewell
Hi, Back in June I posted the message below, but had no replies. I've made a little progress since then so this is to update anyone interested (!) and to ask for comments. Brief problem statement: Under Windows, some parts of R don't handle UNC paths beginning with backslashes. Specifically a)