Skip to content
Prev 24458 / 63424 Next

Compiling C codes in Windows

On 4/3/2007 4:19 AM, Tong Wang wrote:
As Prof. Ripley said, we don't support a native Cygwin build, so you 
need to follow the instructions for building in Windows.  They are 
mainly fairly neutral about which shell you're using, but you may need 
to translate a few Windows CMD specifics into Cygwin equivalents.  For 
example, instead of

PATH=c:\Rtools\bin;...

you would want something like

export PATH=/cygdrive/c/Rtools/bin:...

in bash.
As long as you choose to install the "Source Package Installation Files" 
(which are selected by default) when you install R, and you install the 
tools as described in the R Admin manual or on my 
http://www.murdoch-sutherland.com/Rtools page, you shouldn't need to 
build R in order to compile C code for packages.

Please note that there has been a binary installer available for the 
Rtools for a few days.  It doesn't do a complete install, but it will 
save several steps.

Duncan Murdoch