[R] Package build error

Doran, Harold
Mon, 09 Nov 2009 20:13:19 -0000

I've run into a problem building a package with R-2.10.0 that I haven't
encountered with prior versions. Build and check work fine. However, I encounter
an error at the install phase indicating it cannot open a perl script, which is
below. For completeness, I've copied my path as well showing that I do have
the correct R tools needed, which includes perl.


C:\Program Files\R\R-2.10.0\bin>Rcmd build g:\foo
* checking for file 'g:\foo/DESCRIPTION' ... OK
* preparing 'g:\foo':
* checking DESCRIPTION meta-information ... OK
* removing junk files
tar: foo/NAMESPACE: time stamp 2009-11-09 14:53:03 is 23 s in the future
* checking for LF line-endings in source and make files
* checking for empty or unneeded directories
* building 'foo_1.0.tar.gz'


C:\Program Files\R\R-2.10.0\bin>Rcmd check g:\foo
* checking for working pdflatex ...pdflatex: not found
 NO
* checking for working latex ...latex: not found
 NO
* using log directory 'C:/Program Files/R/R-2.10.0/bin/foo.Rcheck'
* using R version 2.10.0 (2009-10-26)
* using session charset: ISO8859-1
* checking for file 'foo/DESCRIPTION' ... OK
* checking extension type ... Package
* this is package 'foo' version '1.0'
* checking package name space information ... OK
* checking package dependencies ... OK
* checking if this is a source package ... OK
file: not found
* checking for .dll and .exe files ... OK
* checking whether package 'foo' can be installed ... OK
* checking package directory ... OK
* checking for portable file names ... OK
* checking DESCRIPTION meta-information ... OK
* checking top-level files ... OK
* checking index information ... OK
* checking package subdirectories ... OK
* checking R files for non-ASCII characters ... OK
* checking R files for syntax errors ... OK
* checking whether the package can be loaded ... OK
* checking whether the package can be loaded with stated dependencies ... OK
* checking whether the name space can be loaded with stated dependencies ... OK
* checking for unstated dependencies in R code ... OK
* checking S3 generic/method consistency ... OK
* checking replacement functions ... OK
* checking foreign function calls ... OK
* checking R code for possible problems ... OK
* checking Rd files ... OK
* checking Rd metadata ... OK
* checking Rd cross-references ... OK
* checking for missing documentation entries ... OK
* checking for code/documentation mismatches ... OK
* checking Rd \usage sections ... OK
* checking examples ... OK


C:\Program Files\R\R-2.10.0\bin>Rcmd install g:\foo
Can't open perl script "C:\PROGRA~1\R\R-210~1.0/bin/install": No
such file or di
rectory

### Here is my windows path, which has perl

C:\Program Files\Common
Files\OTG;c:\Rtools\bin;C:\Perl\bin\;c:\Rtools\MinGW\bin;c:\texmf\miktek\bin;c:\cygwin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\subversion\Subversion\bin;C:\Program
Files\R\R-2.10.0\bin; ;C:\PROGRA~1\DISKEE~1\DISKEE~1\;C:\Program
Files\QuickTime\QTSystem\


> sessionInfo()
R version 2.10.0 (2009-10-26)
i386-pc-mingw32

locale:
[1] LC_COLLATE=English_United States.1252
[2] LC_CTYPE=English_United States.1252
[3] LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C
[5] LC_TIME=English_United States.1252

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base

loaded via a namespace (and not attached):
[1] tools_2.10.0