Re: [R-pkg-devel] Getting summary.glm to use Matrix::chol2inv

2024-12-23 Thread Mark Donoghoe
Thank you, I was hoping that was not the case but your explanation of the search order from within a package makes sense. Happy holidays, Mark On Tue, 24 Dec 2024 at 04:29, Duncan Murdoch wrote: > > I think the only way to do this is to write your own summary.* method > for your objects. You sh

Re: [R-pkg-devel] Getting summary.glm to use Matrix::chol2inv

2024-12-23 Thread Duncan Murdoch
I think the only way to do this is to write your own summary.* method for your objects. You should modify their class (e.g. to `c("glm2", "glm")` so that your new summary method `summary.glm2` is called instead of `summary.glm`. Changing the search path wouldn't work. Search order from withi

[R-pkg-devel] Getting summary.glm to use Matrix::chol2inv

2024-12-23 Thread Mark Donoghoe
Hi, I am trying to implement a new method for glm2 which allows the use of the Matrix package to work with large data. I have added Matrix to Suggests, and when the new method is requested, the following check is performed: if (!requireNamespace("Matrix", quietly = TRUE)) { stop("Package \