MCPcopy Create free account
hub / github.com/RcppCore/Rcpp / function_namespace_env

Function function_namespace_env

inst/tinytest/cpp/Function.cpp:74–78  ·  view source on GitHub ↗

[[Rcpp::export]]

Source from the content-addressed store, hash-verified

72
73// [[Rcpp::export]]
74Function 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]]
81void exec(Function f) { f(); }

Callers

nothing calls this directly

Calls 1

namespace_envFunction · 0.85

Tested by

no test coverage detected