[R] R package development in windows
Gabor Grothendieck
ggrothendieck at gmail.com
Thu May 3 20:50:22 CEST 2007
It can find sh.exe so you haven't installed Rtools.
There are several HowTo's listed in the links section here that include
pointers to R manuals and other step by step instructions:
http://code.google.com/p/batchfiles/
On 5/3/07, Doran, Harold <HDoran at air.org> wrote:
> I'm attempting to build an R package for distribution and am working
> from the directions found at
> http://www.maths.bris.ac.uk/~maman/computerstuff/Rhelp/Rpackages.html#Wi
> n-Win
>
> I've read through Writing R Extensions and various other "helpful" web
> sites. I've installed all relevant software (perl, cygwin, mingwin,
> hhc.exe). Here is what I have done so far:
>
> 1) Sourced data and functions into R
> 2) Used package.skeleton
> 3) Edited Description file
> 4) Edited my windows path to ensure the new programs (e.g., perl) are in
> the path
> 5) Then, I open DOS and do the following in the script below
>
> C:\Program Files\R\R-2.4.1\bin>Rcmd build --force --binary g:\foo
> * checking for file 'g:\foo/DESCRIPTION' ... OK
> * preparing 'g:\foo':
> * checking DESCRIPTION meta-information ...'sh' is not recognized as an
> internal
> or external command,
> operable program or batch file.
> OK
> * removing junk files
> 'sh' is not recognized as an internal or external command,
> operable program or batch file.
> 'sh' is not recognized as an internal or external command,
> operable program or batch file.
> 'sh' is not recognized as an internal or external command,
> operable program or batch file.
> Error: cannot open file 'foo/DESCRIPTION' for reading
>
> I'ver read through about as much documentation as I can find, and I'm
> just not sure what I should do from here. I admit that I have reached a
> point of frustration and must apologize if the problem would be evident
> if I read documentation further, but I'm about tapped out after a few
> days of experimentation.
>
> Can anyone suggest how I could resolve this and what the next steps
> would be?
>
> Thanks:
>
> I'm using Windows XP and R 2.4.1
>
> Harold
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at stat.math.ethz.ch 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.
>
More information about the R-help
mailing list