Skip to content

Commit 92894ee

Browse files
committed
Force promised namespace bindings on oldrel
1 parent 3ee6f60 commit 92894ee

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/r_api.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ inline SEXP reticulate_get_var(SEXP sym, SEXP env) {
2828
SEXP value = Rf_findVarInFrame(env, sym);
2929
if (value == R_UnboundValue)
3030
value = NULL;
31+
else if (TYPEOF(value) == PROMSXP)
32+
value = Rcpp::internal::Rcpp_eval_impl(value, env);
3133
#endif
3234
if (value == NULL)
3335
Rf_error("object '%s' not found", CHAR(PRINTNAME(sym)));

0 commit comments

Comments
 (0)