Skip to content
Laurent Gatto edited this page Nov 24, 2013 · 5 revisions

Requirements for C and C++ code in R.

For debian-based GNU/Linux systems, installing build-essential (and possibly gfortran and/or f2c) should guarantee installation of the GNU C/C++ compiler and all necessary software.

For Windows, the user will have to install Rtools. See also the Windows toolset section in the R installation and administration reference documentation.

Two additional helpful Windows posts: Installing Rcpp on Windows 7 for R and C++ integration and Installing Rcpp using C++11 on Windows x64.

Mac users will have to install XCode (free from Apple App Store) to get gcc and g++ compilers. See also here and here for official documentation.