[R] R CMD Check fails under Windows XP *under R 2.3.1*

Prof Brian Ripley ripley at stats.ox.ac.uk
Mon Nov 5 13:06:26 CET 2007


Please note the R posting guide: none of the helpers will still be on R 
2.3.1.  This looks like a bug in the shell you have 'make' set up to use: 
it is not an OS-specific issue as that should be sh.exe from the Rtools 
distribution (and that recommended for R 2.3.1 is no longer available).

On Mon, 5 Nov 2007, Susanne Töpfer wrote:

> 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
>
> ______________________________________________
> 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