Skip to content

Commit 2994964

Browse files
committed
replace Rf_findVar with R_getVar in R 4.5.0+
1 parent 204df24 commit 2994964

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/jri/src/Rengine.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,13 @@ LibExtern int R_interrupts_pending;
3737
#define ENCLOS(X) R_ParentEnv(X)
3838
#endif
3939

40+
#if (R_VERSION >= R_Version(4,5,0))
41+
#ifdef Rf_findVar
42+
#undef Rf_findVar
43+
#endif
44+
#define Rf_findVar(X, Y) R_getVar(X, Y, FALSE)
45+
#endif
46+
4047
#include "Rcallbacks.h"
4148
#include "Rinit.h"
4249
#include "globals.h"

0 commit comments

Comments
 (0)