Temporarily set debugging compilation flags.
Usage
with_debug(
code,
CFLAGS = NULL,
CXXFLAGS = NULL,
FFLAGS = NULL,
FCFLAGS = NULL,
debug = TRUE
)
See also
Other debugging flags:
compiler_flags()
Examples
flags <- names(compiler_flags(TRUE))
with_debug(Sys.getenv(flags))
#> CFLAGS CXXFLAGS CXX11FLAGS CXX14FLAGS CXX17FLAGS CXX20FLAGS
#> "" "" "" "" "" ""
#> FFLAGS FCFLAGS
#> "" ""
if (FALSE) { # \dontrun{
install("mypkg")
with_debug(install("mypkg"))
} # }