Temporarily set debugging compilation flags.
with_debug(code, CFLAGS = NULL, CXXFLAGS = NULL, FFLAGS = NULL,
FCFLAGS = NULL, debug = TRUE)
to execute.
flags for compiling C code
flags for compiling C++ code
flags for compiling Fortran code.
flags for Fortran 9x code.
If TRUE
adds -g -Og
to all flags
(Adding FFLAGS
and FCFLAGS
Other debugging flags: compiler_flags
# NOT RUN { flags <- names(compiler_flags(TRUE)) with_debug(Sys.getenv(flags)) # } # NOT RUN { install("mypkg") with_debug(install("mypkg")) # }