Open mmaechler opened 2 days ago
Is there an API for working with promises?
I might be mistaken, but I don't think there are API entrypoints yet for working with promises. As far as I can tell, there is currently no approved way to:
R_missingArg
without calling R-level base::missing()
.
The first is
if (PRCODE(arg) == R_MissingArg) { .... }
here https://github.com/RConsortium/S7/blob/b5cf389d7c6dc676c2d938e2feac6d7ec04d0c50/src/method-dispatch.c#L53 and basically identically (with a!=
instead of==
) also on line 156 .As we know, we (R core) have "solidified" R's C API recently, and visibly in
R-devel
(to be released in Spring 2025), and with (somewhat extended) tests, one now getsThe WRE section is https://cran.r-project.org/doc/manuals/r-devel/R-exts.html#Moving-into-C-API-compliance