jcoliver / learn-r

A suite of lessons for learning the R programming language

Home Page:https://jcoliver.github.io/learn-r/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Address retiring packages in SDM lesson 011

jcoliver opened this issue · comments

maptools and rgdal are apparently being retired in 2023. Will need to see how to replace them.

Find some information at https://www.r-bloggers.com/2022/04/r-spatial-evolution-retirement-of-rgdal-rgeos-and-maptools/.

For rgdal, much of this will take place in the background, as the lesson does not make much (any?) use of rgdal functions directly (they are used mostly by raster package functions).

For maptools, the use of the wrld_simpl data will need to be addressed.

This retirement might mean shifting away from using the raster package, which would be a considerably larger shift. See https://www.r-bloggers.com/2021/05/a-comparison-of-terra-and-raster-packages/ for comparison of the two packages.

terra is now mature enough to take on most of the functionality. Hopefully.

maptools and rdgal removed from, geodata added to lesson in 37a1f1d. Still relying on dismo for SDM modeling (using the bioclim algorithm), which is not yet able to take terra-formatted raster data as input, hence continued reliance on the raster package.

Work is being done on a 230725-sdm-to-glm branch.

Completed. Issues with lesson should go in separate, specific issues.