Package build error

3 messages Options
Embed this post
Permalink
Doran, Harold

Package build error

Reply Threaded More More options
Print post
Permalink
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
______________________________________________
[hidden email] 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.
Duncan Murdoch

Re: Package build error

Reply Threaded More More options
Print post
Permalink
On 11/9/2009 3:13 PM, Doran, Harold wrote:

> 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

The INSTALL script is now internal, and needs to be entered as INSTALL,
not install.

Duncan Murdoch

>
> ### 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
> ______________________________________________
> [hidden email] 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.

______________________________________________
[hidden email] 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.
Doran, Harold

Re: Package build error

Reply Threaded More More options
Print post
Permalink
Indeed, that's the solution. I normally take great care in the windows guidelines for package build. There are many nuances, and so your continued support on this is much appreciated.

> -----Original Message-----
> From: Duncan Murdoch [mailto:[hidden email]]
> Sent: Monday, November 09, 2009 3:42 PM
> To: Doran, Harold
> Cc: [hidden email]
> Subject: Re: [R] Package build error
>
> On 11/9/2009 3:13 PM, Doran, Harold wrote:
> > 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
>
> The INSTALL script is now internal, and needs to be entered
> as INSTALL, not install.
>
> Duncan Murdoch
>
> >
> > ### 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\mikt
> >
> ek\bin;c:\cygwin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\Syste
> > m32\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
> > ______________________________________________
> > [hidden email] 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.
>
>
______________________________________________
[hidden email] 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.