« Running your R code on Azure with mrsdeploy | Main | Comparing subreddits, with Latent Semantic Analysis in R »

March 23, 2017

Comments

Feed You can follow this conversation by subscribing to the comment feed for this post.

I had a question regarding Rcpp and integration Visual Studio C++ with R. Dirk Eddelbuettel in his Rcpp 2016 FAQ states that R simply does not compile with Visual Studio. http://dirk.eddelbuettel.com/code/rcpp/Rcpp-FAQ.pdf

Is this still true? Can you use Rcpp and Visual Studio C++ with Microsoft R Open or do you still need to use g++, and on Windows specifically mingw?

It is still true. Generally R does not compile with VC++ not because of Visual Studio issues but rather because compiling with the same compiler for all platforms ensures runtime and package compatibility and makes code running on Mac, Linux and Windows behave identically.

It is possible to make R compile with VC++ but then you'd get Windows-specific engine bound to Microsoft C Runtime library. But packages on CRAN are compiled with gcc. Different compilers use different C runtime libraries and loading packages built with one compiler into environment compiled with causes problems.

The comments to this entry are closed.

Search Revolutions Blog




Got comments or suggestions for the blog editor?
Email David Smith.
Follow revodavid on Twitter Follow David on Twitter: @revodavid
Get this blog via email with Blogtrottr