Can you set R's C and C++ flags at compilation time when installing from R CMD INSTALL
(essentially, in this particular case I want to turn off compiler optimization, but ideally there's a general solution)?
I know you can affect some options using --configure-args="..."
, and I rather optimistically tried --configure-args="diable-optimization"
, to no avail. Similarly, I could also edit $RHOME/etc/Makeconf
but again this is not really the kind of solution I'm looking for (and not possible where I don't have the relevant write permission).
I define my flags through an autoconf script and with a Makevars
file in the package/src
directory, if this makes any difference.