Displaying 2 results from an estimated 2 matches for "allowprimitivemethod".
Did you mean:
allowprimitivemethods
2024 Sep 27
1
Disabling S4 primitive dispatch during method resolution affects namespace load actions
...Utils.R (working copy)
> @@ -1812,6 +1812,9 @@
> ## real version of .requirePackage
> ..requirePackage <- function(package, mustFind = TRUE) {
> + # we may be called from .findInheritedMethods, which disables S4 primitive dispatch
> + primMethods <- .allowPrimitiveMethods(TRUE)
> + on.exit(.allowPrimitiveMethods(primMethods))
> value <- package
> if(nzchar(package)) {
> ## lookup as lightning fast as possible:
> The original change to disable S4 primitive dispatch during method
> resolution was done in r50609 (2009);...
2024 Sep 27
1
Disabling S4 primitive dispatch during method resolution affects namespace load actions
...ion 87194)
+++ src/library/methods/R/RClassUtils.R (working copy)
@@ -1812,6 +1812,9 @@
## real version of .requirePackage
..requirePackage <- function(package, mustFind = TRUE) {
+ # we may be called from .findInheritedMethods, which disables S4 primitive dispatch
+ primMethods <- .allowPrimitiveMethods(TRUE)
+ on.exit(.allowPrimitiveMethods(primMethods))
value <- package
if(nzchar(package)) {
## lookup as lightning fast as possible:
The original change to disable S4 primitive dispatch during method
resolution was done in r50609 (2009); this may be the first documented
i...