Friday, April 21, 2006

Building A Windows Binary R Package

A binary version of an R package can be created by using the following command.
R CMD BUILD --force --binary packagename
This command requires the use of a commandline zip program. This program can be downloaded as part of Cygwin. If Rtools is being used to create the R package then the Cygwin zip program located at C:\cygwin\bin\zip.exe needs to be copied into the Rtools directory.

This type of package is installed using the Packages -> "Install package(s) from local zip files..." in Windows RGui.

No comments: