HenrikBengtsson / matrixStats

R package: Methods that Apply to Rows and Columns of Matrices (and to Vectors)
https://cran.r-project.org/package=matrixStats
202 stars 33 forks source link

Default 'useNames' argument - take 2 #232

Closed HenrikBengtsson closed 1 year ago

HenrikBengtsson commented 1 year ago

Alright, I've listened, and I thought about it, and then I thought about it even more. I think it's okay to make:

the new default.

Advantages:

Disadvantages:

But, as others tried to convince me in the past, the advantages outweight the disadvantages.

So, the new plan is to go with useNames = TRUE.

FWIW, there are currently a few packages that will break when we make useNames = TRUE the default, cf. Issue #227. They have been informed several times already.

const-ae commented 1 year ago

Hi Henrik, I started making sparseMatrixStats compatible with useNames = TRUE (https://github.com/const-ae/sparseMatrixStats/commit/5441917d2e8e158e86ff8dbb75f58d061440b2bc). There is one edge case which I don't cover yet. matrixStats::colColsums output differs for matrices with no column name and matrices with a dimnames attribute set to NULL. ...

Moved to Issue #234.

HenrikBengtsson commented 1 year ago

Thanks for spotting this. Can you please repost this as a separate issue?

HenrikBengtsson commented 1 year ago

UPDATE: I'm doing the last validations before submitting this new version to CRAN.

HenrikBengtsson commented 1 year ago

matrixStats 1.0.0 is now on CRAN.

const-ae commented 1 year ago

Congrats :)