[R] [R-pkgs] R CMD check on window XP

Prof Brian Ripley
Tue, 16 Dec 2008 12:11:58 -0000

On Mon, 15 Dec 2008, Shu Chen wrote:

> Hi, there,
>
> I used R CMD check  to build my "ATGGS" package under window XP
system. My R version is 2.7.2. But I encounter some problems. The log file is
like:
>
**********************************************************************************
> installing R.css in C:/ATGGS.Rcheck
>
>
> ---------- Making package ATGGS ------------
>  adding build stamp to DESCRIPTION
>  installing R files
>  installing inst files
> find: `C:/ATGGS.Rcheck/ATGGS/csvscripts': Permission denied
> make[2]: *** [C:/ATGGS.Rcheck/ATGGS/inst] Error 1
> make[1]: *** [all] Error 2
> make: *** [pkg-ATGGS] Error 2
> Can't read C:/ATGGS.Rcheck/ATGGS/auxData: Invalid argument at
c:\R\R-27~1.2/bin/INSTALL line 434
> Can't remove directory C:/ATGGS.Rcheck/ATGGS/auxData: Directory not
empty at c:\R\R-27~1.2/bin/INSTALL line 434
> Can't read C:/ATGGS.Rcheck/ATGGS/csvData: Invalid argument at
c:\R\R-27~1.2/bin/INSTALL line 434
> Can't remove directory C:/ATGGS.Rcheck/ATGGS/csvData: Directory not
empty at c:\R\R-27~1.2/bin/INSTALL line 434
> Can't read C:/ATGGS.Rcheck/ATGGS/csvscripts: Invalid argument at
c:\R\R-27~1.2/bin/INSTALL line 434
> Can't remove directory C:/ATGGS.Rcheck/ATGGS/csvscripts: Directory not
empty at c:\R\R-27~1.2/bin/INSTALL line 434
> Can't read C:/ATGGS.Rcheck/ATGGS/doc: Invalid argument at
c:\R\R-27~1.2/bin/INSTALL line 434
> Can't remove directory C:/ATGGS.Rcheck/ATGGS: Directory not empty at
c:\R\R-27~1.2/bin/INSTALL line 434
> *** Installation of ATGGS failed ***
>
> Removing 'C:/ATGGS.Rcheck/ATGGS'
>
>
****************************************************************************************
>
> I am not able to delete c:/ATGGS.Rcheck until I change the permission of
> the folder. I'm the admin of C driver. I have full control of all other
> folders under C driver.


Please sort out the permissions in your source directory, including under
ATGGS/inst.  Something there has incorrect permissions that are confusing
the Cygwin tools used.  (It might be worth checking ownership too: I've
seen similar problems on a drive shared between XP and Vista where they
disagreed about ownership.)

--
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595