[R] Making R packages
Uwe Ligges
ligges at statistik.uni-dortmund.de
Tue Sep 9 15:01:34 CEST 2003
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.
>
> jp
You 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
More information about the R-help
mailing list