search for: primmethod

Displaying 2 results from an estimated 2 matches for "primmethod".

Did you mean: primmethods
2024 Sep 27
1
Disabling S4 primitive dispatch during method resolution affects namespace load actions
...ClassUtils.R (revision 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...
2024 Sep 27
1
Disabling S4 primitive dispatch during method resolution affects namespace load actions
...ry/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 > resoluti...