Closed HenrikBengtsson closed 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.
Thanks for spotting this. Can you please repost this as a separate issue?
UPDATE: I'm doing the last validations before submitting this new version to CRAN.
matrixStats 1.0.0 is now on CRAN.
Congrats :)
Alright, I've listened, and I thought about it, and then I thought about it even more. I think it's okay to make:
useNames = TRUE
the new default.
Advantages:
colMeans()
,rowMeans()
,colSums()
,rowSums()
, andapply()
Disadvantages:
useNames = FALSE
(compared to everyone would know aboutuseNames = TRUE
if they need names)useNames = FALSE
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.