evalCpp.RdEvaluates a C++ expression. This creates a C++ function using
cppFunction and calls it to get the result.
evalCpp(code, depends = character(), plugins = character(), includes = character(),
rebuild = FALSE, cacheDir = getOption("rcpp.cache.dir", tempdir()),
showOutput = verbose, verbose = getOption("verbose"))
areMacrosDefined(names, depends = character(), includes = character(),
rebuild = FALSE, showOutput = verbose,
verbose = getOption("verbose"))C++ expression to evaluate
names of the macros we want to test
see cppFunction
see cppFunction
see cppFunction
see cppFunction
Directory to use for caching shared libraries. If the underlying code passed to sourceCpp has not changed since the last invocation then a cached version of the shared library is used. The default value of tempdir() results in the cache being valid only for the current R session. Pass an alternate directory to preserve the cache across R sessions.
see cppFunction
see cppFunction
The result type of the C++ expression must be compatible with Rcpp::wrap.
The result of the evaluated C++ expression.
if (FALSE) { # \dontrun{
evalCpp("__cplusplus")
evalCpp("std::numeric_limits<double>::max()")
# areMacrosDefined is no longer exported but accessible via ':::'
Rcpp:::areMacrosDefined(c("__cplusplus", "RCPP_VERSION"))
} # }