Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/RcppCore/Rcpp
/ expression_eval
Function
expression_eval
inst/tinytest/cpp/Vector.cpp:74–77 ·
view source on GitHub ↗
[[Rcpp::export]]
Source
from the content-addressed store, hash-verified
72
73
// [[Rcpp::export]]
74
SEXP expression_eval(){
75
ExpressionVector code(
"local( { y <- sample(1:10); sort(y) })"
) ;
76
return code.eval() ;
77
}
78
79
// [[Rcpp::export]]
80
SEXP expression_evalenv( Environment env){
Callers
nothing calls this directly
Calls
1
eval
Method · 0.80
Tested by
no test coverage detected