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 -O0 to all flags (Adding FFLAGS and FCFLAGS
TRUE
-g -O0
FFLAGS
FCFLAGS
Other debugging flags: compiler_flags
compiler_flags
# NOT RUN { flags <- names(compiler_flags(TRUE)) with_debug(Sys.getenv(flags)) # } # NOT RUN { install("mypkg") with_debug(install("mypkg")) # }
Run the code above in your browser using DataCamp Workspace