diff --git a/src/aio.c b/src/aio.c index 385fc8923..d5143bd0e 100644 --- a/src/aio.c +++ b/src/aio.c @@ -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");