-
Notifications
You must be signed in to change notification settings - Fork 34
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
CLEANUP: useNames=NA is now defunct; next is to drop code explaining that and just give an error #246
Comments
Hello! Our research project used "SingleR" package which is associated with "matrixStats". We met the problem that "useNames = NA is defunct.". Our code is:
Error: useNames = NA is defunct. Instead, specify either useNames = TRUE or useNames = FALSE. |
You can still That said, this option will soon be removed from matrixStats. After that, your only option is to install an older version of the package.
Call |
Will wait with this updated until after the next Bioconductor release 3.19 on 2024-05-01. |
@7788zzoo , this is most likely because you're running an outdated version of Bioconductor. Upgrading would fix it. See |
Bioconductor 3.19 was release on 2024-05-01. We can now go ahead and clean out the special code handling if (is.na(useNames)) {
deprecatedUseNamesNA()
} else ... with if (is.na(useNames)) {
stop("Argument 'useNames' must not be NA")
} else ... everywhere. |
Where's the package changelog? Couldn't find any deprecation notice. I am looking for hints as to how to fix this... it migh be that there's no easy way around it, the broken downstream dependencies (SCTransform, glmGamPoi, SingleR, etc.) would need to be adjusted on their source code to add this function argument... Perhaps switching to TRUE if the value was NA, with a warning, as to prevent breaking functionality would've been better. I am just saying this as a constructive criticism. Of course, I am just throwing my opinion with a lot of ignorance on the matter (from what I understand, the argument is not switching any important functionality for the downstream dependant packages.) I'm using Bioc 3.16 with a matching CRAN snapshot for a course. I will probably downgrade to 1.1.0 on top of the package installation setup. If there's any better advice, a cleaner fix, I'd appreciate it. |
Hi adRn's, as the maintainer of
After that, I am able to run
And regarding your question about the changelog; it is in the NEWS.md file (as for every R package) : https://github.com/HenrikBengtsson/matrixStats/blob/develop/NEWS.md#deprecated-and-defunct-1 |
Agree, and this is what we have done over several years and release cycles. We really have tried to reach an as big audience as possible, but we knew that some will always find out much later and in years from now. Installing an older version of matrixStats is one workaround. I'll try to mention this in the docs/news. FYI, |
I'd expect you get an older version of matrixStats that is compatible with Bioc 3.16 if you use CRAN snapshots. So, I'm surprised if you get a newer, incompatible version. |
Thanks for all of your helpful answers. It's under control now 👍🏽 ...Indeed, the CRAN snapshot was set incorrectly. I've just confirmed it. Another incompatibility was around (can't remember well what was it), so I moved the date forward a little... and that's how my frustration grew, jumping from one issue to the other (the usual debugging procedure, maybe). Anyway, thanks again for the support. |
This solution worked for me too. Thank you! |
…seNames = NA` to a warning has been removed [#246]
|
I've submitted matrixStats 1.2.0 (2023-12-11), which makes
useNames = NA
default.There is a temporary, secret R option/env var to undefunct it, but that's just in case someone runs it to this and need an emergency fix. Next on the road map is to:
useNames = NA
.useNames = FALSE
anduseNames = TRUE
should simply be an error.This one should be a quick cleanup.
The text was updated successfully, but these errors were encountered: