However, some R authors have their own CMake scripts that may beused for building R packages. Sometimes these need more effort to work in Windows the way they are intended but better effort has been made than some of the other solutions above.
R is a C++ program that runs in a Windows environment. In order toacquire the features necessary to manipulate compiled code, runningprimarily in Windows, Microsoft has screwed around with the C/C++interfaces of R's CAPI. Alternatively, R could be compiled toperform in a Unix environment. [This is one of the reasons whyMicrosoft has been so slow to support R3.0 and forking R3.0 hasbeen a problem.]
R CMD INSTALL understands that a third-party package might offera CMake script to do this. In that case, the script is executed togenerate a make file. This can be further run by the user to installthe package. The script that actually runs to do this is in the directory:
CMake is a cross-platform build system. We will describe a simpleexample; for more information, see http://www.cmake.org/cmake/help/v2.8.12/ . Thenative R CMake build system is in the “R” directory.It allows you to specify “components” (e.g. d2c66b5586