[R] Problem with building R packages under Windows

From: Dr L. Y Hin <lyhin_at_netvigator.com>
Date: Thu 18 Aug 2005 - 16:44:11 EST

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.


R-help@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 Received on Thu Aug 18 16:49:12 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:39:51 EST