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

Function bindingIsActive

inst/include/Rcpp/Environment.h:293–297  ·  view source on GitHub ↗

* * @param name name of a binding * * @return true if the binding is active in this environment * see ?bindingIsActive * * @throw no_such_binding if there is no such binding in this environment */

Source from the content-addressed store, hash-verified

291 * @throw no_such_binding if there is no such binding in this environment
292 */
293 bool bindingIsActive(const std::string& name) const {
294 if( !exists( name) ) throw no_such_binding(name) ;
295 SEXP nameSym = Rf_install(name.c_str());
296 return R_BindingIsActive(nameSym, Storage::get__()) ;
297 }
298
299 /**
300 * @return the global environment. See ?globalenv

Callers

nothing calls this directly

Calls 1

existsFunction · 0.85

Tested by

no test coverage detected