mstrimas / smoothr

Spatial Feature Smoothing in R
http://strimas.com/smoothr
GNU General Public License v3.0
96 stars 5 forks source link

Error when loading library #14

Closed hunterdanielsmith closed 1 year ago

hunterdanielsmith commented 1 year ago

library(smoothr) Error: package or namespace load failed for ‘smoothr’: class "SpatRaster" is not exported by 'namespace:terra'

mstrimas commented 1 year ago

My first guess is that you have an outdated version of terra. What version of the terra package are you using? If you update it, does the reported error go away?

hunterdanielsmith commented 1 year ago

That worked. Thanks!

mstrimas commented 1 year ago

Thanks for catching this, I'll put a more explicit dependency on a current version of terra in the DESCRIPTION file for smoothr.