-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Remove maptools and deprecate fortify() for sp objects #5327
Remove maptools and deprecate fortify() for sp objects #5327
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, but would it make sense to be a little bit more explicit why people need to migrate to {sf}?
For example: "The maptools package {is/will be} retired: please migrate to sf."
Thanks! Sorry for replying late. I agree that this needs a bit better message, but I haven't come up with a nice one so far.
A bit tricky thing is that the sp package itself is not deprecated as long as the usage doesn't depend on the retiring packages (rgdal, rgeos, and maptools). It's us who want to deprecate these functions and it's not directly because of the maptools retirement, except for the defunct |
Right, I might've skimmed over the nuance here. In any case it was merely a suggestion, I think this PR is fine as-is. |
@yutannihilation There were no reverse dependency issues with retiring maptools and it would be nice to include this PR in the hotfix for v3.4.4, as maptools retires in October. If you'd like, I'm happy to merge this in to the v3.4.4-rc and tweak the version number. If you prefer changing the target branch and changing the version number in deprecation messages yourself, that is great too. |
I'm fine with either, but, in my understanding, this needs to be merged into the main branch anyway, no matter whether this is merged into the RC branch or not, right? |
The RC branch will be merged into main after release |
Ah, okay. I see. But, I think I cannot simply change the target branch as this contains a lot of commits from the main branch already. Isn't it easier to merge this into main first, and then cherry-pick the squashed commit? |
Ah, you already merged in main. Yeah, then merging this PR and cherry picking the commit is probably the right way |
hmm - can you try to change the target of the PR and see what it will change... I don't think it will bring in all the prior changes, but maybe I'm wrong |
I'm not very wise in the ways of git-fu but isn't there a way to rebase a branch to 'play out' the commits over a different branch? |
Oops, I'm sorry. I actually tried to do this
but accidentally pushed into https://github.com/tidyverse/ggplot2/commits/v3.4.4-rc If this looks good to you, you can use this as it is. If not, please recreate the branch. So sorry for the trouble. |
Yeah I think it is probably fine, thanks so much for resolving this! |
@teunbrand
I too didn't know what actually would happen, so I created a pull request on my repo, here's how it looks like: |
* Cherry-pick from #5327 * Add a NEWS item * Hotfix 3.4.4 (#5449) * is.atomic() --> is.atomic() || is.null() * Polish news * Put is.null() first * Cherrypick rgeos removal from description (#5453) * Remove rgeos from the dependency (#5242) --------- Co-authored-by: Hiroaki Yutani <yutani.ini@gmail.com> * run revdepcheck * Update CRAN comments * Increment version number to 3.4.4 * Fix Version 3.4.4 NEWS Typo (#5479) Change "the upcoming retirement of rproj, rgeos, and maptools" to "the upcoming retirement of rgdal, rgeos, and maptools" * Increment version number to 3.4.4.9000 --------- Co-authored-by: Hiroaki Yutani <yutani.ini@gmail.com> Co-authored-by: Thomas Lin Pedersen <thomasp85@gmail.com> Co-authored-by: Matt Nield <64328730+matthewjnield@users.noreply.github.com>
A part of #5244
While we lean to agree on dropping these
fortify()
for sp objects altogether, there might be several options. At the safest, we should remove maptools, because otherwise ggplot2 might be kicked out from CRAN in the worst-case scenario. So, this pull request doesfortify()
for sp objects in general