Displaying 2 results from an estimated 2 matches for "mk_extern".
Did you mean:
__extern
2024 Sep 27
1
Disabling S4 primitive dispatch during method resolution affects namespace load actions
...d reference classes. Since methods:::.findInheritedMethods
temporarily disables primitive S4 dispatch [2], reference classes break
and the namespace fails to load. I have prepared a small reproduction
package [3], which will need to be installed to show the problem:
R -q -s -e "saveRDS(repro::mk_external(), 'foo.rds')"
R -q -s -e "readRDS('foo.rds')"
# Loading required package: repro
# Error: package or namespace load failed for ?repro? in
# .doLoadActions(where, attach):
# error in load action .__A__.1 for package repro: bar$foo(): attempt
# to apply non-function...
2024 Sep 27
1
Disabling S4 primitive dispatch during method resolution affects namespace load actions
...:.findInheritedMethods
> temporarily disables primitive S4 dispatch [2], reference classes break
> and the namespace fails to load. I have prepared a small reproduction
> package [3], which will need to be installed to show the problem:
> R -q -s -e "saveRDS(repro::mk_external(), 'foo.rds')"
> R -q -s -e "readRDS('foo.rds')"
> # Loading required package: repro
> # Error: package or namespace load failed for ?repro? in
> # .doLoadActions(where, attach):
> # error in load action .__A__.1 for package repro...