Skip to content
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

Legacy 'sp' notice on 'sf' startup #2193

Closed
francisbarton opened this issue Jun 26, 2023 · 3 comments
Closed

Legacy 'sp' notice on 'sf' startup #2193

francisbarton opened this issue Jun 26, 2023 · 3 comments

Comments

@francisbarton
Copy link

francisbarton commented Jun 26, 2023

My package uses some sf functions. I don't call sp functions directly anywhere and only sf is in my Imports list in the DESCRIPTION file.
I also have tmap in my Suggests list.

When I load my package, I get the

The legacy packages maptools, rgdal, and rgeos, underpinning the sp package,
which was just loaded, will retire in October 2023....

startup message at the console. I don't think this message applies to my package as I am already using pure sf and not relying directly on sp. How can I turn this message off please?

@rsbivand
Copy link
Member

Please name your package. Then track back through its strong dependencies, to find the subset of packages with strong dependencies on sp, may be tmap, others too.

@francisbarton
Copy link
Author

Thanks Roger. My package is not on CRAN so no need to worry about it as a revdep for sp.

I am sure it is the tmap package that is generating the message. When I do library(tmap) I get the same message. Presumably because it Imports stars.

If I remove tmap from my Suggests list, then reload my package, I don't get the message.
I didn't think packages in the Suggests list were loaded when a package is loaded, but that is an issue for another place, not here.

@francisbarton
Copy link
Author

r-tmap/tmap#738 confirms that this is due to indirect dependencies of tmap.

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

No branches or pull requests

2 participants