Bug 15942 - R CMD check --as-cran fails from read-only file system or directory tree
Summary: R CMD check --as-cran fails from read-only file system or directory tree
Status: NEW
Alias: None
Product: R
Classification: Unclassified
Component: Low-level (show other bugs)
Version: R-devel (trunk)
Hardware: ix86 (32-bit) Windows 32-bit
: P5 major
Assignee: R-core
URL:
Depends on:
Blocks:
 
Reported: 2014-08-20 07:52 UTC by Kirill Müller
Modified: 2014-08-20 10:13 UTC (History)
0 users

See Also:


Attachments
00install.out from the above test (248 bytes, text/plain)
2014-08-20 07:52 UTC, Kirill Müller
Details
File created by R CMD check, corrected (340 bytes, text/plain)
2014-08-20 10:12 UTC, Kirill Müller
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kirill Müller 2014-08-20 07:52:42 UTC
Created attachment 1649 [details]
00install.out from the above test

Steps to reproduce:

- Naked system (I used Windows 8.1 32-bit)
- Install R in C:\R
- Set all files and folders under C:\R to "read-only"
- Set R_LIBS_USER environment variable to e.g. C:\RLibrary, create appropriate empty directory
- Run R CMD build and R CMD check --as-cran for a package that imports the MASS package (e.g. https://github.com/krlmlr/r-appveyor/archive/mass.zip)

Result:

* checking whether package 'fakepackage' can be installed ...Warning: running command '"D:/R/bin/i386/Rcmd.exe" INSTALL -l "C:/r-appveyor/fakepackage.Rcheck" --no-html --no-multiarch "C:\R-APPV~1\FAKEPA~1.RCH\00_PKG~1\FAKEPA~1"' had status 1
 ERROR
Installation failed.
See 'C:/r-appveyor/fakepackage.Rcheck/00install.out' for details.

Expected result:

- Checks succeed.

Further notes:

- Taking away the read-only status from C:\R\library\MASS\DESCRIPTION resolves the issue
- Manually installing MASS to the user library also resolves the issue
- Omitting --as-cran does not lead to this error
- Tested with R-devel r66437 and R 3.1.1, identical behavior
- I have read http://cran.r-project.org/bin/windows/base/rw-FAQ.html#Does-R-run-under-Windows-Vista_003f, but this currently seems to be the only issue that prevents running R from a read-only file system
Comment 1 Kirill Müller 2014-08-20 10:12:44 UTC
Created attachment 1650 [details]
File created by R CMD check, corrected