[R] package building problem on windows

Christophe Dutang dutangc at gmail.com
Sun Aug 17 14:17:49 CEST 2008


Actually I was suspected that 'r cmd build' search for 'C:/DOCUME~1/c- 
dutang/Local' and not 'C:/DOCUME~1/c-dutang/Local Settings'.

I will check (tomorrow) if there are any spaces in environment  
variables TMP*.

Thanks for your suggestion.

Christophe


Le 17 août 08 à 14:08, Prof Brian Ripley a écrit :

> Does your setting of TMPDIR, TEMP or TMP have a space in it?
>
> From the R-admin manual:
>
>  You may need to set TMPDIR to the absolute path to a suitable  
> temporary
>  directory: the default is 'c:/TEMP'.  (Use forward slashes and do not
>  use a path including spaces.)
>
> The documentation is that manual, not 'Murdoch's page', whatever  
> that is.
>
> On Sun, 17 Aug 2008, Christophe Dutang wrote:
>
>> Hi,
>>
>> I'm trying to compile the package biglm, but when I build it with R  
>> CMD build biglm, it failed :
>>
>> C:\LOCAL\c-dutang\code\R\biglm2>R CMD build biglm
>> * checking for file 'biglm/DESCRIPTION' ... OK
>> * preparing 'biglm':
>> * checking DESCRIPTION meta-information ...C:/DOCUME~1/c-dutang/ 
>> Local: Can't op
>> n C:/DOCUME~1/c-dutang/Local: No such file or directory
>> C:/DOCUME~1/c-dutang/Local: Can't open C:/DOCUME~1/c-dutang/Local:  
>> No such file
>> or directory
>> C:/DOCUME~1/c-dutang/Local: Can't open C:/DOCUME~1/c-dutang/Local:  
>> No such file
>> or directory
>> OK
>> * cleaning src
>> * removing junk files
>> C:/DOCUME~1/c-dutang/Local: Can't open C:/DOCUME~1/c-dutang/Local:  
>> No such file
>> or directory
>> C:/DOCUME~1/c-dutang/Local: Can't open C:/DOCUME~1/c-dutang/Local:  
>> No such file
>> or directory
>> C:/DOCUME~1/c-dutang/Local: Can't open C:/DOCUME~1/c-dutang/Local:  
>> No such file
>> or directory
>> Error: cannot open file 'biglm/DESCRIPTION' for reading
>>
>> But when I install it, the installation is performed but I still  
>> have 'can't open' and 'no such file or directory'.
>>
>> C:\LOCAL\c-dutang\code\R\biglm2>R CMD install biglm
>> C:/DOCUME~1/c-dutang/Local: Can't open C:/DOCUME~1/c-dutang/Local:  
>> No such file
>> or directory
>> installing to ''
>>
>>
>> ---------- Making package biglm ------------
>> adding build stamp to DESCRIPTION
>> installing NAMESPACE file and metadata
>> making DLL ...
>> gcc  -std=gnu99  -IC:/PROGRA~1/R/R-2.7.1/include     -O3 -Wall  -c  
>> boundedQR.c -
>> o boundedQR.o
>> gfortran   -O3  -c boundedQRf.f -o boundedQRf.o
>> windres --preprocessor="gcc -E -xc -DRC_INVOKED" -I C:/PROGRA~1/R/ 
>> R-2.7.1/includ
>> e  -i biglm_res.rc -o biglm_res.o
>> gcc  -std=gnu99  -shared -s  -o biglm.dll biglm.def boundedQR.o  
>> boundedQRf.o big
>> lm_res.o  -LC:/PROGRA~1/R/R-2.7.1/bin   -lgfortran -lR
>> ... DLL made
>> installing DLL
>> installing R files
>> installing man source files
>> installing indices
>> installing help
>>>>> Building/Updating help pages for package 'biglm'
>>   Formats: text html latex example chm
>> adding MD5 sums
>>
>> * DONE (biglm)
>>
>> Actually, I have no directory local in 'document and settings' but  
>> a directory local settings exists. What's wrong with my  
>> installation? I install all tools as recommanded on Murdoch's page.  
>> Maybe R CMD build tries to use a temp file? in 'document and  
>> settings'?
>>
>> I use R 2.7.1 with Windows xp pro.
>>
>> Thanks in advance
>>
>> Christophe
>>
>> ______________________________________________
>> R-help at r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-help
>> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
>> and provide commented, minimal, self-contained, reproducible code.
>
> -- 
> 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



More information about the R-help mailing list