Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

40 lines (32 sloc) 0.884 kB
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/with-debug.r
\name{with_debug}
\alias{with_debug}
\title{Temporarily set debugging compilation flags.}
\usage{
with_debug(code, CFLAGS = NULL, CXXFLAGS = NULL, FFLAGS = NULL,
FCFLAGS = NULL, debug = TRUE)
}
\arguments{
\item{code}{to execute.}
\item{CFLAGS}{flags for compiling C code}
\item{CXXFLAGS}{flags for compiling C++ code}
\item{FFLAGS}{flags for compiling Fortran code.}
\item{FCFLAGS}{flags for Fortran 9x code.}
\item{debug}{If \code{TRUE} adds \code{-g -O0} to all flags
(Adding \env{FFLAGS} and \env{FCFLAGS}}
}
\description{
Temporarily set debugging compilation flags.
}
\examples{
flags <- names(compiler_flags(TRUE))
with_debug(Sys.getenv(flags))
\dontrun{
install("mypkg")
with_debug(install("mypkg"))
}
}
\seealso{
Other debugging flags: \code{\link{compiler_flags}}
}
Jump to Line
Something went wrong with that request. Please try again.