Trackage / trip

trip package development
http://trackage.github.io/trip/
12 stars 2 forks source link

sp end of life #48

Open mdsumner opened 2 years ago

mdsumner commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

affinity

just uses raster functions that can be replaced with terra easily

mdsumner commented 2 years ago

angstroms

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

mdsumner commented 2 years ago

basf

just uses raster::extent() fix that

mdsumner commented 2 years ago

ceramic

importFrom(raster,"projection<-")
importFrom(raster,crop)
importFrom(raster,extent)
importFrom(sp,plot)
mdsumner commented 1 year ago

graticule

Depends: sp

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

Suggests: devtools, knitr, maptools, oce, rgdal, rworldmap, sf, spex, testthat, rmarkdown, covr
mdsumner commented 1 year ago

quadmesh

Imports: raster, gridBase, png, sp, geometry, reproj (>= 0.4.0), scales, palr,terra
mdsumner commented 1 year ago

rbgm

replace with wk

Depends:            raster, sp
Imports:            dplyr, geosphere, rlang, reproj, sfheaders
mdsumner commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

spdplyr (ARCHIVED)

Imports:            methods, rlang, spbabel, tibble, utils
Suggests:           testthat, maptools, raster, rmarkdown, knitr, covr, spelling
mdsumner commented 1 year ago

everything is free now of rgeos, maptools, rgdal

the sp thing is going to take more of an effort

updates above