[R] Problem with building R packages under Windows
Dr L. Y Hin
lyhin at netvigator.com
Thu Aug 18 08:44:11 CEST 2005
Dear all,
I am coming to the guru for advise here. I am a native user of Windows,
and S-plus, and the process of migrating my libraries from S to R has been
more than a painstaking task...
I am currently using R version 2.1.1 in Windows XP SP2.
I have read the "Writing R extensions", "the FAQ in R", and your valuable
document
"R for Windows Users", but still unable to compile a package in
R using Rcmd (likely stupidity on my part).
The followings are what I have done:
1. Downloaded and setup ActivePerl and the path (in control panel) of
c:\Perl\bin has been added automatically. I have downloaded version (5.8.7).
2. Downloaded and setup tools bundle from
www.stats.ox.ac.uk/pub/Rtools/tools.zip and
unzip them into c:\bin and added the path (in control panel) of c:\bin
3. Downloaded and setup the entire package of MikTex at
http://www.miktex.org/ and added
the path (in control panel) of C:\texmf\miktex\bin
4. Added the path (in control panel) referencing R (this version being
R2.0patched) which
is C:\Program Files\R\rw2000pat\bin
5. Since my codes are all in R scripts without compiled codes, I did not
install MinGW.
6. At DOS prompt at the preamble of the directory called foo (which
contained all subdirectories as created in R using
package.skeleton(name = "foo", list=cdgam.func)),
I typed the following:
C:\>Rcmd build --binary foo
Can't locate R/Dcf.pm in @INC <@INC contains: c:\share\perl c:/Perl/lib
c:/Perl/site/lib .> at C:/bin/build line 29.
BEGIN failed--compilation aborted at C:/bin/build line 29.
I'd be very grateful if anyone could kindly advise me on this matter.
Thanks.
Lin
More information about the R-help
mailing list