Hello, I wrote an R function and want to build an R package on winXP. I have set my path:C:\bin;C:\MinGW\bin;C:\Perl\bin\;C:\Tcl\bin;C:\texmf\miktex\bin;C:\Program Files\R\rw1081\bin; I tried to run "Rcmd build --help" but failed. Under C:\WINDOWS\System32\cmd.exe, I got the error message: Please set TMPDIR to a valid temporary directory. Under Cygwin, I got the error message: Can't locate R/Dcf.pm in @INC <@INC contains: c \PROGRA~1\R\rw1081\share\perl; /usr/lib/perl5/5.8.0/cygwin-multi-64int /usr/lib/perl5/site_perl/5.8.0/cygwin-multi-64int /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl .> at c:\PROGRA~1\R\rw1081/bin/build line 34. BEGIN failed--compilation aborted at c:\PROGRA~1\R\rw1081/bin/build line 34. I have Dcf.pm in \PROGRA~1\R\rw1081\share\perl\R. Why Rcmd build can not find it? Thanks. Jing
build R package on winXP
5 messages · Jing Wu, Brian Ripley, Uwe Ligges
On Mon, 5 Jan 2004, Jing Wu wrote:
I wrote an R function and want to build an R package on winXP. I have set my path:C:\bin;C:\MinGW\bin;C:\Perl\bin\;C:\Tcl\bin;C:\texmf\miktex\bin;C:\Program Files\R\rw1081\bin; I tried to run "Rcmd build --help" but failed. Under C:\WINDOWS\System32\cmd.exe, I got the error message: Please set TMPDIR to a valid temporary directory.
So, please do as you were asked: it is discussed in readme.packages.
Under Cygwin, I got the error message:
You said you wanted to build on winXP, not under Cygwin.
Can't locate R/Dcf.pm in @INC <@INC contains: c \PROGRA~1\R\rw1081\share\perl; /usr/lib/perl5/5.8.0/cygwin-multi-64int /usr/lib/perl5/site_perl/5.8.0/cygwin-multi-64int /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl .> at c:\PROGRA~1\R\rw1081/bin/build line 34. BEGIN failed--compilation aborted at c:\PROGRA~1\R\rw1081/bin/build line 34. I have Dcf.pm in \PROGRA~1\R\rw1081\share\perl\R. Why Rcmd build can not find it?
Because you are not following the instructions, which are to use *Windows* Perl. Once again, this is in the file readme.packages.
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
On Mon, 5 Jan 2004, Prof Brian Ripley wrote:
On Mon, 5 Jan 2004, Jing Wu wrote:
I wrote an R function and want to build an R package on winXP. I have set my path:C:\bin;C:\MinGW\bin;C:\Perl\bin\;C:\Tcl\bin;C:\texmf\miktex\bin;C:\Program Files\R\rw1081\bin; I tried to run "Rcmd build --help" but failed. Under C:\WINDOWS\System32\cmd.exe, I got the error message: Please set TMPDIR to a valid temporary directory.
I moved my folder 'IHF' to C:\Program Files\R\rw1081\src\library. Then I typed the commond: C:\Program Files\R\rw1081\src\library >Rcmd build --binary IHF I got this error message: Error: cannot change to directory 'C:/Documents'. Where did I go wrong? Thanks. Jing
On Mon, 5 Jan 2004, Jing Wu wrote:
On Mon, 5 Jan 2004, Jing Wu wrote:
I wrote an R function and want to build an R package on winXP. I have set my path:C:\bin;C:\MinGW\bin;C:\Perl\bin\;C:\Tcl\bin;C:\texmf\miktex\bin;C:\Program Files\R\rw1081\bin; I tried to run "Rcmd build --help" but failed. Under C:\WINDOWS\System32\cmd.exe, I got the error message: Please set TMPDIR to a valid temporary directory.
I moved my folder 'IHF' to C:\Program Files\R\rw1081\src\library. Then I typed the commond: C:\Program Files\R\rw1081\src\library >Rcmd build --binary IHF I got this error message: Error: cannot change to directory 'C:/Documents'. Where did I go wrong? Thanks.
Did you actually read the file readme.packages that I pointed you to in my previous reply? What does it say about paths containing spaces? Do not use paths with spaces in: you can always use the short forms. You appear to have done so *twice*.
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
Jing Wu wrote:
On Mon, 5 Jan 2004, Prof Brian Ripley wrote:
On Mon, 5 Jan 2004, Jing Wu wrote:
I wrote an R function and want to build an R package on winXP. I have set my path:C:\bin;C:\MinGW\bin;C:\Perl\bin\;C:\Tcl\bin;C:\texmf\miktex\bin;C:\Program Files\R\rw1081\bin; I tried to run "Rcmd build --help" but failed. Under C:\WINDOWS\System32\cmd.exe, I got the error message: Please set TMPDIR to a valid temporary directory.
I moved my folder 'IHF' to C:\Program Files\R\rw1081\src\library. Then I typed the commond: C:\Program Files\R\rw1081\src\library >Rcmd build --binary IHF I got this error message: Error: cannot change to directory 'C:/Documents'.
>
Where did I go wrong? Thanks.
I think Prof. Ripley already told you that there are blanks in your path
("Program Files" contains a blank!). Simply use another one without
blanks in it.
Uwe Ligges
Jing
______________________________________________ R-help at stat.math.ethz.ch mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html