Hi: I am posting this message for a colleague who has a lot of trouble to build an R package on Windows. He did not find a solution to his problems on the R-help archives and hopes that one of the R gurus will be able to help. He has a directory "CO2" which should contain all the required files and directories: DATA: DESCRIPTION MAN: R: README SRC: The following command is run in a windows console: C:\Program Files\R\rw1071\bin\rcmd INSTALL D:\CO2 Then he gets the following error (approximate translation of a French message) : "Perl is not recognized as an internal or external command, an executable file or a command file" Perl has of course been installed on the PC and my colleague has the "Tools" file. He does not know what is wrong although he suspects that environment variables (which ones?) must be changed. Any help would be appreciated. jp -- Jean-Pierre Gattuso | mailto:gattuso at obs-vlfr.fr | http://www.obs-vlfr.fr/~gattuso
Gattuso, Jean-Pierre wrote:> The following command is run in a windows console: > C:\Program Files\R\rw1071\bin\rcmd INSTALL D:\CO2 > > Then he gets the following error (approximate translation of a French > message) : > "Perl is not recognized as an internal or external command, an > executable file or a command file"You (or he) has to set the appropriate PATH to contain the tools, the Perl\bin the Mingw\bin and the Html-Workshop directories. You should respect capitalization of the path names and avoid spaces within the names. For the latter you can use the abbreviated directory name, e.g. C:\PROGRA~1\Perl\bin (or whatever) instead of C:\Program Files\Perl\bin Thomas
Try adding C:\Perl\bin\; to your path variable. -----Original Message----- From: Gattuso, Jean-Pierre [mailto:gattuso@obs-vlfr.fr] Sent: 09 September 2003 13:40 To: r-help@stat.math.ethz.ch Subject: [R] Making R packages Hi: I am posting this message for a colleague who has a lot of trouble to build an R package on Windows. He did not find a solution to his problems on the R-help archives and hopes that one of the R gurus will be able to help. He has a directory "CO2" which should contain all the required files and directories: DATA: DESCRIPTION MAN: R: README SRC: The following command is run in a windows console: C:\Program Files\R\rw1071\bin\rcmd INSTALL D:\CO2 Then he gets the following error (approximate translation of a French message) : "Perl is not recognized as an internal or external command, an executable file or a command file" Perl has of course been installed on the PC and my colleague has the "Tools" file. He does not know what is wrong although he suspects that environment variables (which ones?) must be changed. Any help would be appreciated. jp -- Jean-Pierre Gattuso | mailto:gattuso@obs-vlfr.fr | http://www.obs-vlfr.fr/~gattuso ______________________________________________ R-help@stat.math.ethz.ch mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help KSS Ltd Seventh Floor St James's Buildings 79 Oxford Street Manchester M1 6SS England Company Registration Number 2800886 Tel: +44 (0) 161 228 0040 Fax: +44 (0) 161 236 6305 mailto:kssg@kssg.com http://www.kssg.com The information in this Internet email is confidential and m...{{dropped}}
On Tue, 9 Sep 2003 14:39:53 +0200, you wrote:>Then he gets the following error (approximate >translation of a French message) : > "Perl is not recognized as an internal or >external command, an executable file or a command >file" > >Perl has of course been installed on the PC and >my colleague has the "Tools" file. He does not >know what is wrong although he suspects that >environment variables (which ones?) must be >changed. > >Any help would be appreciated.Sounds as though his PATH is missing the Perl directory. Quoting the INSTALL file:>Check your path >--------------- > >You need the following in your path (with the first two first): >. >our toolset >mingw\bin >Perl\bin >the latex bin directory >zip.exe, unzip.exe, hhc.exeDuncan Murdoch
On Tue, 2003-09-09 at 13:39, Gattuso, Jean-Pierre wrote:> Hi: > > I am posting this message for a colleague who has > a lot of trouble to build an R package on > Windows. He did not find a solution to his > problems on the R-help archives and hopes that > one of the R gurus will be able to help. > > He has a directory "CO2" which should contain all > the required files and directories: > DATA: > DESCRIPTION > MAN: > R: > README > SRC: > > The following command is run in a windows console: > C:\Program Files\R\rw1071\bin\rcmd INSTALL D:\CO2 > > Then he gets the following error (approximate > translation of a French message) : > "Perl is not recognized as an internal or > external command, an executable file or a command > file" > > Perl has of course been installed on the PC and > my colleague has the "Tools" file. He does not > know what is wrong although he suspects that > environment variables (which ones?) must be > changed. > > Any help would be appreciated. > > jpHi JP, Depending on your OS version you can change the PATH variable. In NT version is under "system" I believe (I don't have a M$ system here to check). Hope this helps. Regards EJ
Gattuso, Jean-Pierre wrote:> Hi: > > I am posting this message for a colleague who has a lot of trouble to > build an R package on Windows. He did not find a solution to his > problems on the R-help archives and hopes that one of the R gurus will > be able to help. > > He has a directory "CO2" which should contain all the required files and > directories: > DATA: > DESCRIPTION > MAN: > R: > README > SRC: > > The following command is run in a windows console: > C:\Program Files\R\rw1071\bin\rcmd INSTALL D:\CO2 > > Then he gets the following error (approximate translation of a French > message) : > "Perl is not recognized as an internal or external command, an > executable file or a command file" > > Perl has of course been installed on the PC and my colleague has the > "Tools" file. He does not know what is wrong although he suspects that > environment variables (which ones?) must be changed. > > Any help would be appreciated. > > jpYou have to add perl to your environment variable "path". It's a good idea to add your R directory too, so you can do: d:\> Rcmd INSTALL CO2 If you have some C or Fortran sources, you will need the compiler as well, see ...\rw1071\src\gnuwin32\readme.packages for details. Uwe Ligges Uwe Ligges
The document http://www.stat.auckland.ac.nz/~kwan022/rinfo.php gives an excellent step by step description of how to make an R package for Windows. -----Original Message----- From: Gattuso, Jean-Pierre [mailto:gattuso@obs-vlfr.fr] Sent: 09 September 2003 13:40 To: r-help@stat.math.ethz.ch Subject: [R] Making R packages Hi: I am posting this message for a colleague who has a lot of trouble to build an R package on Windows. He did not find a solution to his problems on the R-help archives and hopes that one of the R gurus will be able to help. He has a directory "CO2" which should contain all the required files and directories: DATA: DESCRIPTION MAN: R: README SRC: The following command is run in a windows console: C:\Program Files\R\rw1071\bin\rcmd INSTALL D:\CO2 Then he gets the following error (approximate translation of a French message) : "Perl is not recognized as an internal or external command, an executable file or a command file" Perl has of course been installed on the PC and my colleague has the "Tools" file. He does not know what is wrong although he suspects that environment variables (which ones?) must be changed. Any help would be appreciated. jp -- Jean-Pierre Gattuso | mailto:gattuso@obs-vlfr.fr | http://www.obs-vlfr.fr/~gattuso ______________________________________________ R-help@stat.math.ethz.ch mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help KSS Ltd Seventh Floor St James's Buildings 79 Oxford Street Manchester M1 6SS England Company Registration Number 2800886 Tel: +44 (0) 161 228 0040 Fax: +44 (0) 161 236 6305 mailto:kssg@kssg.com http://www.kssg.com The information in this Internet email is confidential and m...{{dropped}}