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) {
94
94
SET_TAG (CDDR (call), ::Rf_install (" error" ));
95
95
SET_TAG (CDDR (CDR (call)), ::Rf_install (" interrupt" ));
96
96
97
- Shield<SEXP> res (internal::Rcpp_eval_impl (call, R_GlobalEnv ));
97
+ Shield<SEXP> res (internal::Rcpp_eval_impl (call, R_BaseEnv ));
98
98
99
99
// check for condition results (errors, interrupts)
100
100
if (Rf_inherits (res, " condition" )) {
@@ -103,7 +103,7 @@ inline SEXP Rcpp_eval(SEXP expr, SEXP env) {
103
103
104
104
Shield<SEXP> conditionMessageCall (::Rf_lang2 (::Rf_install (" conditionMessage" ), res));
105
105
106
- Shield<SEXP> conditionMessage (internal::Rcpp_eval_impl (conditionMessageCall, R_GlobalEnv ));
106
+ Shield<SEXP> conditionMessage (internal::Rcpp_eval_impl (conditionMessageCall, R_BaseEnv ));
107
107
throw eval_error (CHAR (STRING_ELT (conditionMessage, 0 )));
108
108
}
109
109
You can’t perform that action at this time.
0 commit comments