Skip to content

Deprecate qplot() - #4079

Merged
yutannihilation merged 17 commits into
tidyverse:mainfrom
yutannihilation:refactor/issue-3956-deprecate-qplot
Jun 12, 2022
Merged

yutannihilation merged 17 commits into
tidyverse:mainfrom
yutannihilation:refactor/issue-3956-deprecate-qplot

Conversation

@yutannihilation

@yutannihilation yutannihilation commented Jun 21, 2020 •

Copy link
Copy Markdown
Member

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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Member Author

throw a warning when somebody uses qplot()

This pull request was intended for this.

@clauswilke

Copy link
Copy Markdown
Member

Then I'm in support.

@thomasp85

Copy link
Copy Markdown
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
Copy Markdown
Member Author

This should be ready for review now.

@thomasp85 thomasp85 left a comment

Copy link
Copy Markdown
Member

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
Copy Markdown
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