user1436187 user1436187 - 9 months ago 34
C++ Question

Compile R package with clang in ubuntu

Currently I am using ubuntu.

By default R uses g++ to compile c/c++ code in a R package.

How can I force R to use clang++/clang?


"i) clang -- and I do from time to time test with clang which works just fine "as is", ie on my Linux box I simply say this in ~/.R/Makevars


Thanks Dirk!