Displaying 1 result from an estimated 1 matches for "mjskay".
Did you mean:
mjska
2024 Apr 14
1
Calling applyClosure from a package?
...s
approach is that it should be fully compatible with functions that use
the standard R functions for NSE and inspecting function context, like
substitute(), match.call(), or parent.frame(). And indeed, it works!
-- in R 4.3, that is. The prototype version of the package is here:
https://github.com/mjskay/uneval (the relevant function to my
question is probably do_invoke, in R/invoke.R).
While testing on R-devel, I noticed that Rf_applyClosure(), which used
to be exported, is now marked with attribute_hidden. I traced the
change to this commit in Oct 2023:
https://github.com/r-devel/r-svn/commit/5...