[[Rcpp::export]]
| 72 | |
| 73 | // [[Rcpp::export]] |
| 74 | Function function_namespace_env(){ |
| 75 | Environment ns = Environment::namespace_env( "stats" ) ; |
| 76 | Function fun = ns[".asSparse"] ; // accesses a non-exported function |
| 77 | return fun; |
| 78 | } |
| 79 | |
| 80 | // [[Rcpp::export]] |
| 81 | void exec(Function f) { f(); } |
nothing calls this directly
no test coverage detected