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

Function bindingIsLocked

inst/include/Rcpp/Environment.h:278–282  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

276 * @throw no_such_binding if there is no such binding in this environment
277 */
278 bool bindingIsLocked(const std::string& name) const{
279 if( !exists( name) ) throw no_such_binding(name) ;
280 SEXP nameSym = Rf_install(name.c_str());
281 return R_BindingIsLocked(nameSym, Storage::get__() ) ;
282 }
283
284 /**
285 *

Callers 2

assignFunction · 0.85
removeFunction · 0.85

Calls 1

existsFunction · 0.85

Tested by

no test coverage detected