Open mdsumner opened 2 years ago
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}
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
just uses raster functions that can be replaced with terra easily
bit more serious, romsmap() for example publishes methods for Spatial classes so move to {wk} {libproj}
just uses raster::extent()
fix that
importFrom(raster,"projection<-")
importFrom(raster,crop)
importFrom(raster,extent)
importFrom(sp,plot)
Depends: sp
Imports: methods, quadmesh, raster, utils, geosphere, stats
Suggests: devtools, knitr, maptools, oce, rgdal, rworldmap, sf, spex, testthat, rmarkdown, covr
Imports: raster, gridBase, png, sp, geometry, reproj (>= 0.4.0), scales, palr,terra
replace with wk
Depends: raster, sp
Imports: dplyr, geosphere, rlang, reproj, sfheaders
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
replace with a round-trip by wk
Imports: dplyr, methods, sp, tibble, rlang
Suggests: testthat, ggplot2, maptools, raster, sf, rmarkdown, knitr, covr, trip,
viridis
Imports: methods, rlang, spbabel, tibble, utils
Suggests: testthat, maptools, raster, rmarkdown, knitr, covr, spelling
everything is free now of rgeos, maptools, rgdal
the sp thing is going to take more of an effort
updates above
trip was first so use this to map out the strategy