-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Should all deprecation notices use warning()? #3057
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
Comments
I did some searching on this, and wasn't able to find any dependencies that use Just as a note, the rlang package has two (unexported) functions to signal deprecation ( |
They are a bonus we can get if we follow tidyverse's lifecycle policy. I think it's a good idea, though I'm not sure what amount of work will be needed. c.f. https://github.com/r-lib/rlang/blob/master/R/compat-lifecycle.R |
New from the Tidy Principles book that will be implemented in my latest PR: tidyverse/design#67 |
I'd suggest we deprecate |
I think this is now done in 020e852 |
I wasn't aware of
gg_dep()
until I see #3056. During checking the usages ofgg_dep()
, I found there are five ways (!) to show deprecation notices:gg_dep()
message()
warning()
stop()
.Deprecated()
Though
gg_dep()
seems a good idea, maybe should we consistently usewarning()
(orrlang::warn()
?) for deprecation notices (except when there's a good reason to use some other way)? One problem ofgg_dep()
is that revdep checks are usually done with the dev version (the current version +.9000
), which might give the different result with the release version.The text was updated successfully, but these errors were encountered: