Skip to content

Deprecate qplot() #4079

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

Conversation

yutannihilation
Copy link
Member

@yutannihilation yutannihilation commented Jun 21, 2020

Close #3956

TODO

  • Add .Deprecate() to qplot()
  • Remove stat and position and throw errors
  • Tweak the document of qplot()
  • Remove the use of qplot() in tests

Remaining quesitons

  • How should we rewrite translate_qplot_ggplot and translate_qplot_lattice? (I decided to just delete them)
  • Do we need some instruction to get rid of qplot()?
  • How should we communicate with the extension package authors?

@thomasp85
Copy link
Member

Team - should we pull the trigger on this? I don't think any more coercion without deprecation will move remaining users so there is no point in waiting longer. It is either deprecation of qplot() or leaving it in in perpetuity...

@clauswilke
Copy link
Member

What exactly does deprecate mean at this point? Does it mean throw a warning when somebody uses qplot() or does it mean remove qplot() entirely? I think the right strategy would be to start warning people when they are using qplot() that it's on the way out. Then, in a future release, remove outright.

@yutannihilation
Copy link
Member Author

throw a warning when somebody uses qplot()

This pull request was intended for this.

@clauswilke
Copy link
Member

Then I'm in support.

@thomasp85
Copy link
Member

Yeah, this will have to go through the proper and very very long deprecation process... but it will allow us to better ignore the function during development

@yutannihilation yutannihilation changed the title WIP: Deprecate qplot() Deprecate qplot() Jun 9, 2022
@yutannihilation
Copy link
Member Author

This should be ready for review now.

Copy link
Member

@thomasp85 thomasp85 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good - had no idea we were using plot so much in the tests 😬

@yutannihilation
Copy link
Member Author

Yeah, I too didn't expect I would have to modify so many lines... Thanks for reviewing, I'm merging this.

@yutannihilation yutannihilation merged commit 775f1b4 into tidyverse:main Jun 12, 2022
@yutannihilation yutannihilation deleted the refactor/issue-3956-deprecate-qplot branch June 12, 2022 12:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove stat and position arguments from qplot() and formaly deprecate the function
3 participants