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

sp end of life #48

Open
mdsumner opened this issue Sep 8, 2021 · 13 comments
Open

sp end of life #48

mdsumner opened this issue Sep 8, 2021 · 13 comments

Comments

@mdsumner
Copy link
Member

mdsumner commented Sep 8, 2021

trip was first so use this to map out the strategy

# packages potentially affected (others possible depending on what's used )
pat <- "sp|raster|geosphere|spbabel|rgdal|spex|rgdal"
x <- tibble::as_tibble(tools::CRAN_package_db())
library(dplyr)
x %>% filter(grepl("Sumner", Maintainer) & ( grepl(pat, Depends) | grepl(pat, Imports) | grepl(pat, Suggests))) %>% select(Package)
@mdsumner
Copy link
Member Author

mdsumner commented Sep 8, 2021

trip

generally, anything using sp via raster will be able to use terra, but not trip for example - either we'll need to preserve those core classes, or perhaps rebuild trip with {wk}

@mdsumner
Copy link
Member Author

mdsumner commented Sep 8, 2021

tripEstimation

tripEstimation and similar will be able to wrap any functions with internal versions I think

here's the relevant parts from the NAMESPACE

## get.sst
importFrom(sp, "coordinates<-", "gridded<-", as.image.SpatialGridDataFrame)

## satellite.model / solar.model
importFrom(sp, CRS)
importFrom(rgdal, CRSargs, project)

that's definitely easy

@mdsumner
Copy link
Member Author

mdsumner commented Sep 8, 2021

affinity

just uses raster functions that can be replaced with terra easily

@mdsumner
Copy link
Member Author

mdsumner commented Sep 8, 2021

angstroms

bit more serious, romsmap() for example publishes methods for Spatial classes so move to {wk} {libproj}

@mdsumner
Copy link
Member Author

mdsumner commented Sep 8, 2021

basf

just uses raster::extent() fix that

@mdsumner
Copy link
Member Author

mdsumner commented Sep 8, 2021

ceramic

importFrom(raster,"projection<-")
importFrom(raster,crop)
importFrom(raster,extent)
importFrom(sp,plot)

@mdsumner
Copy link
Member Author

graticule

Depends: sp

Imports: methods, quadmesh, raster, utils, geosphere, stats

Suggests: devtools, knitr, maptools, oce, rgdal, rworldmap, sf, spex, testthat, rmarkdown, covr

@mdsumner
Copy link
Member Author

quadmesh

Imports: raster, gridBase, png, sp, geometry, reproj (>= 0.4.0), scales, palr,terra

@mdsumner
Copy link
Member Author

mdsumner commented Oct 10, 2022

rbgm

replace with wk

Depends:            raster, sp
Imports:            dplyr, geosphere, rlang, reproj, sfheaders

@mdsumner
Copy link
Member Author

silicate

Imports:            dplyr, gibble (>= 0.4.0), methods, purrr, rlang, decido, tibble, unjoin
                    (>= 0.1.0), grDevices, graphics, stats, magrittr, gridBase, crsmeta (>=
                    0.3.0)
Suggests:           covr, knitr, rmarkdown, sp, testthat (>= 2.1.0), trip, vdiffr

@mdsumner
Copy link
Member Author

mdsumner commented Oct 10, 2022

spbabel

replace with a round-trip by wk

Imports:            dplyr, methods, sp, tibble, rlang
Suggests:           testthat, ggplot2, maptools, raster, sf, rmarkdown, knitr, covr, trip,
                    viridis

@mdsumner
Copy link
Member Author

mdsumner commented Oct 10, 2022

spdplyr (ARCHIVED)

Imports:            methods, rlang, spbabel, tibble, utils
Suggests:           testthat, maptools, raster, rmarkdown, knitr, covr, spelling

@mdsumner
Copy link
Member Author

everything is free now of rgeos, maptools, rgdal

the sp thing is going to take more of an effort

updates above

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

1 participant