-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HEADS UP: New default for ties.method
of {col,row}Ranks()
#20
Comments
Hi Henrik, thanks for the heads-up. Could you say a bit more what is the advantage of using And I assume, that I will also need to duplicate the efforts to warn people about not specifying |
Only to align with
Only until we get to Step 3, when A more abrupt approach would be to just switch the default, but I'm too conservative for such a silent change.
Yes, I think so. You could keep your current default, if you'd like, or take the same deprecate-defunct-change_default approach as I do above. Note that this is an extremely rare event, but I think it's worth fixing it, especially for future generations. FWIW, in hindsight, we should have made Clear as mud? |
Background
matrixStats uses
ties.method = "max"
as the default forcolRanks()
androwRanks()
for legacy reasons, but we want eventually update toties.method = "average"
to align it withbase::rank()
, cf. HenrikBengtsson/matrixStats#142.The process for this migration with be:
ties.method
is not explicitly specified (long time; several releases)ties.method
is not explicitly specified (long time; several releases)ties.method = "average"
This will have to take a long time in order to make sure end-users out there will notice this and update their code. I hope this will minimize the risk for existing code all of a sudden start producing different results.
Issue
sparseMatrixStats gives an ERROR when I revdep check asserting
!isTRUE(missing(ties.method))
, cf. https://github.com/HenrikBengtsson/matrixStats/blob/feature/default-rank-ties.method/revdep/R_MATRIXSTATS_TIES_METHOD_MISSING%3Ddefunct/problems.md#sparsematrixstatsThe text was updated successfully, but these errors were encountered: