Displaying 2 results from an estimated 2 matches for "2024q3".
Did you mean:
20243
2024 Sep 27
1
Disabling S4 primitive dispatch during method resolution affects namespace load actions
...is may be the first documented
instance of it causing a problem. The comment says "At the moment, this
is just for efficiency, but in principle it could be needed to avoid
recursive calls to findInheritedMethods."
--
Best regards,
Ivan
[1]
https://stat.ethz.ch/pipermail/r-package-devel/2024q3/011097.html
[2]
https://github.com/r-devel/r-svn/blob/776045d4601ed3ac7b8041e94c665bbfe9709191/src/library/methods/R/methodsTable.R#L457
[3]
https://codeberg.org/aitap/S4_vs_onLoad
2024 Sep 27
1
Disabling S4 primitive dispatch during method resolution affects namespace load actions
...ill get some speed if your new code is replaced by
if(!.allowPrimitiveMethods(TRUE))
on.exit(.allowPrimitiveMethods(FALSE))
which is correct as we know that the argument and return value
are both either TRUE or FALSE.
Martin
> [1] https://stat.ethz.ch/pipermail/r-package-devel/2024q3/011097.html
> [2] https://github.com/r-devel/r-svn/blob/776045d4601ed3ac7b8041e94c665bbfe9709191/src/library/methods/R/methodsTable.R#L457
> [3] https://codeberg.org/aitap/S4_vs_onLoad