jlisic / cdlTools

A set of tools for fetching and using the Cropscape Data Layer in R
9 stars 4 forks source link

Remove raster dependency #24

Closed kevinwolz closed 9 months ago

kevinwolz commented 1 year ago

This package depends on (imports) the raster package, which is retiring and will no longer be supported (https://r-spatial.org/r/2022/04/12/evolution.html, https://r-spatial.org/r/2022/12/14/evolution2.html). Even now, continuing to include raster as a dependency means that warnings are generated every time cdlTools is loaded in R.

jlisic commented 1 year ago

Thanks Kevin,

Unless I'm reading the article wrong, it just identifies some risk on the retirement of rgdal and rgeos. I have mostly moved to terra as an option on all functions in the dev branch except for 'createComparableCDL' which is in progress.

Reinstalling with current versions of 'sp', 'raster', and 'cdlTools' should remove the warning message.

jlisic commented 9 months ago

Version 1.0 that I'm pushing now supports terra. Raster will be removed as outlined above.