* * @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 */
| 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 |