Skip to content

Commit

Permalink
loadNamespace not requireNamespace
Browse files Browse the repository at this point in the history
  • Loading branch information
shikokuchuo committed Jun 21, 2024
1 parent be8863f commit c9f135b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/aio.c
Original file line number Diff line number Diff line change
Expand Up @@ -1399,7 +1399,7 @@ SEXP rnng_set_promise_context(SEXP x, SEXP ctx) {
if (eln2 == eln2dummy) {
SEXP str, call;
PROTECT(str = Rf_mkString("later"));
PROTECT(call = Rf_lang2(Rf_install("requireNamespace"), str));
PROTECT(call = Rf_lang2(Rf_install("loadNamespace"), str));
Rf_eval(call, R_GlobalEnv);
UNPROTECT(2);
eln2 = (void (*)(void (*)(void *), void *, double, int)) R_GetCCallable("later", "execLaterNative2");
Expand Down

0 comments on commit c9f135b

Please sign in to comment.