File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
inst/include/Rcpp/api/meat Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ inline SEXP Rcpp_eval(SEXP expr, SEXP env) {
9494 SET_TAG (CDDR (call), ::Rf_install (" error" ));
9595 SET_TAG (CDDR (CDR (call)), ::Rf_install (" interrupt" ));
9696
97- Shield<SEXP> res (internal::Rcpp_eval_impl (call, R_GlobalEnv ));
97+ Shield<SEXP> res (internal::Rcpp_eval_impl (call, R_BaseEnv ));
9898
9999 // check for condition results (errors, interrupts)
100100 if (Rf_inherits (res, " condition" )) {
@@ -103,7 +103,7 @@ inline SEXP Rcpp_eval(SEXP expr, SEXP env) {
103103
104104 Shield<SEXP> conditionMessageCall (::Rf_lang2 (::Rf_install (" conditionMessage" ), res));
105105
106- Shield<SEXP> conditionMessage (internal::Rcpp_eval_impl (conditionMessageCall, R_GlobalEnv ));
106+ Shield<SEXP> conditionMessage (internal::Rcpp_eval_impl (conditionMessageCall, R_BaseEnv ));
107107 throw eval_error (CHAR (STRING_ELT (conditionMessage, 0 )));
108108 }
109109
You can’t perform that action at this time.
0 commit comments