Skip to content
Prev 139933 / 398502 Next

Cygwin and Rtools

David Scott wrote:
If you want to build R or R packages, you should install Rtools, with 
the Rtools/bin directory ahead of Cygwin in your PATH.  If you want to 
build Cygwin apps, you'll want to put Rtools later (or not mention it at 
all), because Rtools is set up to build native Windows binaries, not 
Cygwin-linked ones.
 
Rtools includes a subset of the Cygwin tools; it's possible that Cygwin 
has newer versions of some of them, but you don't always want them.  In 
particular, make and tar from Cygwin won't work to build R.  See the 
README.txt file in the Rtools 
(http://www.murdoch-sutherland.com/Rtools/README.txt) for details.

The other complication with having both Rtools and Cygwin installed is 
that they both have copies of the Cygwin dlls.  You want the latest 
versions.  Rtools has fairly recent ones, but Cygwin's may be newer.

Duncan Murdoch