-
Notifications
You must be signed in to change notification settings - Fork 3
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
Recommend sf over sp? #47
Comments
My 10 cents: yes! |
I agree with @Robinlovelace. That being said some flexibility should be allowed given the state of flux with spatial, especially since |
I also agree it's best at this point to recommend |
To complicate matters just a bit, there is the beastly nature of
Recommending a package that is almost 10 times the size of its predecessor; that represents one of the largest installs in anybody's
|
Thanks all! A lot of food for thought! 🤔 💥 |
Cannot compete with Bob's viz (awesome stuff - shows how interdependent we're all becoming which I recall you saying is a tendency to resist!) but just thought I'd flag that many of those pkgs will already be installed on many useRs computers, especially Code: https://github.com/Robinlovelace/geocompr/blob/master/code/cranlogs.R but starting out with this: pkgs = c("Rcpp", "MASS", "e1071", "units", "magrittr")
dd = cranlogs::cran_downloads(packages = pkgs,
from = "2013-01-01", to = Sys.Date()) |
I don't think it's possible to make a blanket recommendation for onboarding, sf is really not for package devs, it's just not that kind of tool. |
Just wondering if it is worth re-framing the question somewhat: is there some approach that developers of packages working with spatial data (e.g., accessing a data repository or API that distributes spatial data) can do to make their packages more Or more generally, would it make sense to have some recommendations about spatial data standards in rOpenSci not necessarily tied to any particular package ecosystem? e.g. for starters, "packages working with spatial data should declare the projection used". Would it make sense to suggest something like |
A few points:
|
For the same of completeness here, here is a link to an issue thread where @edzer states:
|
Now that @rsbivand has retired, |
Any role for a maintenance-mode only sp going forward is to keep packages using spatial vector representations and unwilling to migrate to sf directly from breaking. For similarly placed packages using S4 classes inheriting from sp gridded classes, the picture is more complex, as stars and terra are arguably both useful alternatives, and should both be supported, but with no recommended preference (use cases should decide for themselves). So for vector data, yes, only recommend sf; for raster data, probably no call should be made beyond pointing out that raster's use of rgdal to access GDAL has EOL to the end of 2023 latest. |
Thanks @edzer and @rsbivand for useful clarification! We'll update our recommended scaffolding section of our Development Guide to restate what you've clarified here. Much appreciated, and all the best to you @rsbivand for your days and years ahead! The entire R community will long remain deeply indebted to your contributions! |
Thanks @mpadge ! The proposed scaffolding text looks well-balanced. |
Ping our Associate Editor for Spatial Software, @Paula-Moraga, so you're aware of these updates 😄 Our automated checking system will notify whenever these (potentially) obsolete packages are used, so you'll see any such cases straight away. |
Resolved by @mpadge's PR to the dev guide ropensci/dev_guide#362 Thanks to all those who chimed in! |
@jhollist @ateucher @Robinlovelace @mpadge cc @sckott
Dear geospatial+rOpenSci R people I can think of right now, do you think it would make sense for rOpenSci to recommend
sf
oversp
in the onboarding guidelines?Here are our current package recommendations, e.g. xml2 over XML.
The text was updated successfully, but these errors were encountered: