-
Notifications
You must be signed in to change notification settings - Fork 54
Closed
Description
cpp11/inst/include/cpp11/environment.hpp
Lines 37 to 51 in 1c9dbb6
| operator SEXP() const { return safe[Rf_findVarInFrame3](parent_, name_, TRUE); }; | |
| operator sexp() const { return SEXP(); }; | |
| }; | |
| public: | |
| environment(SEXP env) : env_(env) {} | |
| environment(sexp env) : env_(env) {} | |
| proxy operator[](const SEXP name) const { return {env_, name}; } | |
| proxy operator[](const char* name) const { return operator[](safe[Rf_install](name)); } | |
| proxy operator[](const std::string& name) const { return operator[](name.c_str()); } | |
| bool exists(SEXP name) const { | |
| SEXP res = safe[Rf_findVarInFrame3](env_, name, FALSE); | |
| return res != R_UnboundValue; | |
| } |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels