Skip to content

Commit e74f674

Browse files
committed
Disable R_getVar() for now
1 parent cf9fe75 commit e74f674

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/rlang/env.h

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,12 @@ r_obj* r_env_find_anywhere(r_obj* env, r_obj* sym) {
5959
return Rf_findVar(sym, env);
6060
}
6161

62-
#if R_VERSION < R_Version(4, 5, 0)
63-
// Compatibility implementation for `R_getVar()`:
64-
// - Throws if not found
65-
// - Evaluates promises
62+
#if 1 || R_VERSION < R_Version(4, 5, 0)
63+
// We currently can't use `R_getVar()` which:
64+
// 1. Throws if not found
65+
// 2. Throws if argument is the missing arg
66+
// 3. Evaluates promises
67+
// Our operators have to return missing arguments.
6668
static inline
6769
r_obj* r_env_get(r_obj* env, r_obj* sym) {
6870
r_obj* out = r_env_find(env, sym);

0 commit comments

Comments
 (0)