Disclaimer: The
instructions below describe what I've been doing to compile an R
package for Windows. Check out the files src/gnuwin32/INSTALL
and src/gnuwin32/readme.packages
in the R source distribution for the official (and recommended)
approach. Most importantly, see this page.
Also note: there is an online service (http://win-builder.r-project.org) for building and checking R packages for Windows.
Rtools.exe
file. This includes:
When given the option to edit your PATH, take it (see item 5 below).
Rtools.exe
, you're given the option to edit your PATH.)
c:\Rtools\bin;c:\Rtools\perl\bin;c:\Rtools\MinGW\bin;c:\R\bin
and then any other stuff at the end.
(Most problems I've experienced have been due to incorrect directories here, or an incorrect order in the directories.)
With R version 2.14, this is easier than ever before.
I'll use, as an
example, my own package, qtl
.
c:\MyRpackages
(containing the file qtl_1.22-18.tar.gz
)
R CMD INSTALL --build qtl_1.22-18.tar.gz
qtl_1.22-18.zip
should be created.
To build the package for both 32- and 62-bit Windows, you need to
R CMD INSTALL --build
--compile-both qtl_1.22-18.tar.gz
Last modified: Mon Apr 9 10:16:06 2012 |