Description Usage Arguments Value Note See Also Examples
Evaluates a C++ expression. This creates a C++ function using
cppFunction
and calls it to get the result.
1 2 3 4 5 6 |
code |
C++ expression to evaluate |
names |
names of the macros we want to test |
depends |
see |
includes |
see |
rebuild |
see |
showOutput |
see |
verbose |
see |
The result of the evaluated C++ expression.
The result type of the C++ expression must be compatible with Rcpp::wrap
.
1 2 3 4 5 6 7 8 9 | ## Not run:
evalCpp( "__cplusplus" )
evalCpp( "std::numeric_limits<double>::max()" )
areMacrosDefined( c("__cplusplus", "HAS_TR1" ) )
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.