[R] R CMD Check fails under Windows XP

Susanne Töpfer S_Toepfer at web.de
Mon Nov 5 12:57:11 CET 2007


Hello,

I have a problem with the checking and building of R packages that contain C or FORTRAN code.

I have implemented R 2.3.1 (2006-06-01) and the corresponding toolset under Windows XP and Windows 2000. 
The MinGW compiler components are (exactly as recommended for R 2.3.1)

gcc-core-3.4.5-20051220-1.tar.gz
gcc-g++-3.4.5-20051220-1.tar.gz
gcc-g77-3.4.5-20051220-1.tar.gz
binutils-2.16.91-20050827-1.tar.gz
mingw-runtime-3.9.tar.gz
w32api-3.6.tar.gz

Under Windows 2000, everything works fine. Under Windows XP, R packages without C or FORTRAN code can be built without any problem. 
Also, the C or FORTRAN code can be compiled using the command R CMD SHLIB.

The problem is, that building packages that contain C or FORTRAN code fails (only under Windows XP). 
The command “R CMD Check test” gives

* using log directory 'F:/test.Rcheck'
* using Version 2.3.1 (2006-06-01)
* checking for file 'test/DESCRIPTION' ... OK
* this is package 'test' version '0.1-1'
* checking package dependencies ... OK
* checking if this is a source package ... OK
* checking whether package 'test' can be installed ... ERROR
Installation failed.
See 'F:/test.Rcheck/00install.out' for details. 


The file 00install.out contains the message:

---------- Making package test ------------
  adding build stamp to DESCRIPTION
  making DLL ...
Syntax error: "elif" unexpected (expecting "then")
make[2]: *** [srcDynlib] Error 2
make[1]: *** [all] Error 2
make: *** [pkg-test] Error 2
*** Installation of test failed *** 

I have already tested different (recommended) orders in the path variable, the actual value is
C:\Programme\RTools\bin;C:\Programme\Perl\bin;C:\Programme\R\R-2.3.1\bin;
C:\Programme\Texmf\miktex\bin;C:\Programme\HTML_Help_Workshop; 
/* other things */;C:\Programme\MinGW\bin

Does anybody can give me a hint?

Thank you very much for your time!
Susanne Toepfer


_____________________________________________________________________
Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
http://smartsurfer.web.de/?mc=100071&distributionid=000000000066



More information about the R-help mailing list