If you install the R package, which requires compilation with
R CMD INSTALL package.tar.gz
from bash, R uses the gcc compiler by default. It happened that my R-package gives a warning about Cran with the installation of the "clang" compiler, which does not appear with the gcc compiler.
To reproduce the warning on my local computer, I would like to configure the local compiler options to those used on the Cran check servers.
I found out that it is possible to change the default R compiler by creating the Makevars.in file somewhere in the home folder, but I canβt find where it should be located and what needs to be written there to make R to use "clang" with specific warning flags, not "gcc".
Has anyone already turned on their Linux default R compiler system from gcc to clang and can give me a hint how to do this?
source
share