I am developing an R package containing C++ code via Rcpp. Devtools is very convenient, but always adds debug flags -g -O0 when running load_all
. This is added after my specification of -O3 in ~/.R/Makevars.
I see in the devtools documentation "Debugging flags for the compiler, set by compiler_flags(FALSE)
." However, this function does not seem to be exported in devtools. I tried calling the function pkgbuild::compiler_flag(FALSE)
, but this did not remove the flags when running load_all
again, although it did seem to output the correct flags.
Can someone help?