Evaluate a C++ Expression
Evaluates 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"))
code |
C++ expression to evaluate |
names |
names of the macros we want to test |
plugins |
see |
depends |
see |
includes |
see |
rebuild |
see |
cacheDir |
Directory to use for caching shared libraries. If the underlying code passed to |
showOutput |
see |
verbose |
see |
The result of the evaluated C++ expression.
The result type of the C++ expression must be compatible with Rcpp::wrap
.
## Not run: evalCpp( "__cplusplus" ) evalCpp( "std::numeric_limits<double>::max()" ) areMacrosDefined( c("__cplusplus", "HAS_TR1" ) ) ## End(Not run)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.