rocker-org / rocker-versioned2

Run current & prior versions of R using docker. rocker/r-ver, rocker/rstudio, rocker/shiny, rocker/tidyverse, and so on.
https://rocker-project.org
GNU General Public License v2.0
411 stars 175 forks source link

geospatial stack should include terra package #207

Closed myoung3 closed 3 years ago

myoung3 commented 3 years ago

From the authors:

The “terra” package is a new R package to replace “raster”. “terra” is easier to use, has more functionality, and it is faster. So if in doubt use the terra version.

https://rspatial.org/

From my testing, terra is much faster than raster in some cases. Installing it should be as easy as install.packages("terra") since it doesn't have any additional system dependencies beyond those of raster.

cboettig commented 3 years ago

Thanks @myoung3 , agreed. want to send a PR against https://github.com/rocker-org/rocker-versioned2/blob/master/scripts/install_geospatial.sh ?

myoung3 commented 3 years ago

minor correction: it has basically the same system dependencies of sf, not raster. But that's a moot point since sf is also already in geospatial (and also itself imported by raster)

terra: C++11, GDAL (>= 2.2.3), GEOS (>= 3.4.0), PROJ (>= 4.9.3), sqlite3

sf: C++11, GDAL (>= 2.0.1), GEOS (>= 3.4.0), PROJ (>= 4.8.0), sqlite3

the slight difference in dependency I think does not matter since geospatial seems to be using 7.2.0 for PROJ and and 3.2.0 for GDAL.

eddelbuettel commented 3 years ago

Are there other packages from the 'new' geo stack we're missing?

myoung3 commented 3 years ago

Just looking at r-spatial.org, maybe gdalcubes and rstac. Maybe a question for Edzer Pebesma?

myoung3 commented 3 years ago

also mapedit https://r-spatial.org/r/2019/03/31/mapedit_leafpm.html

myoung3 commented 3 years ago

also rgee. Is it ok that this links to python? If we include rgee, we'd need to put reticulate in geospatial.

myoung3 commented 3 years ago

rgee also has a bunch of suggests that are pretty important for fully using it. Definitely googledrive and googleCloudStorageR if you want to download data. Probably a bunch of those others for interactive mapping.

cboettig commented 3 years ago

Thanks @myoung3 :+1: for adding gdalcubes, rstac & mapedit.

Let's think about rgee and friends ... adding reticulate itself is simple enough, but I think I'm still dialing in the version control for python. (It does look like the rgee developers fix the ee_version string in the R package's installer method, which is good from our perspective. That serves to lock the python version of the package to the R version, but doesn't ensure the python module's own dependencies will be version stable).

@edzer, @Robinlovelace we always love your input!

myoung3 commented 3 years ago

Yeah I'm inclined to agree on rgee--adding python opens up a whole set of issues it would be nice to avoid in the geospatial stack.

Robinlovelace commented 3 years ago

+1 for keeping the rocker/geospatial images focussed on in-memory analysis and preventing mission creep. I think there may be demand for rgee images but this may not be the best place for that.

myoung3 commented 3 years ago

Looks like the post on mapedit also recommends lwgeom

cboettig commented 3 years ago

I think we already pull in lwgeom indirectly (probably from stars) but no harm in listing it explicitly

edzer commented 3 years ago

I agree.

On August 5, 2021 6:08:19 PM GMT+02:00, Robin @.***> wrote:

+1 for keeping the rocker/geospatial images focussed on in-memory analysis and preventing mission creep. I think there may be demand for rgee images but this may not be the best place for that.

-- You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub: https://github.com/rocker-org/rocker-versioned2/issues/207#issuecomment-893580747 -- Sent from my Android device with K-9 Mail. Please excuse my brevity.