Re: [Rd] Rcmd check fails on Windows Samba network path in R 2.9.1

2009-07-22 Thread Simon Urbanek
On Jul 22, 2009, at 10:28 , Duncan Murdoch wrote: On 7/22/2009 9:10 AM, Kevin R. Coombes wrote: Hi, Thanks; that confirms that the problem originates where I thought it did, and provides a fix from within R. However, the original problem was that running "Rcmd check" from a Windows/DOS com

Re: [Rd] Rcmd check fails on Windows Samba network path in R 2.9.1

2009-07-22 Thread Duncan Murdoch
On 7/22/2009 9:10 AM, Kevin R. Coombes wrote: Hi, Thanks; that confirms that the problem originates where I thought it did, and provides a fix from within R. However, the original problem was that running "Rcmd check" from a Windows/DOS command prompt on a package on a mounted Samba network

Re: [Rd] Rcmd check fails on Windows Samba network path in R 2.9.1

2009-07-22 Thread Kevin R. Coombes
Hi, Thanks; that confirms that the problem originates where I thought it did, and provides a fix from within R. However, the original problem was that running "Rcmd check" from a Windows/DOS command prompt on a package on a mounted Samba network drive fails. The failure occurs because of th

Re: [Rd] Rcmd check fails on Windows Samba network path in R 2.9.1

2009-07-22 Thread Henrik Bengtsson
See r-devel thread '[Rd] file.access() on network (mounted) drive on Windows Vista' on Nov 26, 2008: http://tolstoy.newcastle.edu.au/R/e5/devel/08/11/0806.html where it was concluded that file.access() is "not 100%", e.g. file.access() and file.info() can give different answers. I added fileAc

Re: [Rd] Rcmd check fails on Windows Samba network path in R 2.9.1

2009-07-21 Thread Kevin R. Coombes
The results of the session below are the same in 2.8.1 as in 2.9.1 (including in particular the response to the call to file.access). Kevin Tony Plate wrote: Did you try starting up R-2.8.1 and checking the result of file.access(lib, 2) on that very same directory where R-2.9.1 gives an inc

Re: [Rd] Rcmd check fails on Windows Samba network path in R 2.9.1

2009-07-21 Thread Tony Plate
Did you try starting up R-2.8.1 and checking the result of file.access(lib, 2) on that very same directory where R-2.9.1 gives an incorrect indication? If that gives the correct answer, then, look for changes in the file.access code. -- Tony Plate Kevin R. Coombes wrote: Hi, The problem al

Re: [Rd] Rcmd check fails on Windows Samba network path in R 2.9.1

2009-07-21 Thread Kevin R. Coombes
Hi, The problem almost certainly has something to do with Samba. We also have a NetApp file system, and copying the package source to that drive and running Rcmd check from Windows works just fine. When running the commands from an interactive R session, file_test returns TRUE and file.acce

Re: [Rd] Rcmd check fails on Windows Samba network path in R 2.9.1

2009-07-20 Thread Tony Plate
This error message looks like it comes from src/library/tools/R/install.R, which contains the following test: if (!.file_test("-d", lib) || file.access(lib, 2L)) stop("ERROR: no permission to install to directory ", sQuote(lib), call. = FALSE) The function .file_test() is

[Rd] Rcmd check fails on Windows Samba network path in R 2.9.1

2009-07-20 Thread Kevin R. Coombes
Hi, I have just updated R from version 2.8.1 to version 2.9.1. I am running Windows XP Professional, Service Pack 3. With the update, I decided to update a set of packages that I maintain by compiling them for the new version. Everything worked fine except for one package. This package is