Skip to content
Prev 14627 / 21307 Next

[Bioc-devel] Pushing towards a better home for matrix generics

Returning to this topic:?

It's good to hear some of the rationale behind the current state of
affairs. That said, the set-up we have now is quite difficult to work
with; as mentioned before, I've had to hack around it like:

# Example from "BiocSingular", https://github.com/LTLA/BiocSingular
.safe_colSums <- function(x) {
????if (is(x, "Matrix")) {
????????Matrix::colSums(x)
????} else {
????????colSums(x)
????}????
}

... which is ugly, and even worse, still incorrect, e.g., for non-
Matrix classes that have methods for the implicit colSums generic. This
situation is not sustainable for further package development.

Is there a path forward that is palatable to everyone? Or perhaps these
conversations are already happening on R-devel?

-A
On Tue, 2019-01-29 at 18:46 +0000, Pages, Herve wrote: