I installed smoothr using install.packages('smoothr') as well as devtools::install_github("mstrimas/smoothr"). However I am getting the following error when I run library(smoothr):
Error: package or namespace load failed for ‘smoothr’: class "SpatRaster" is not exported by 'namespace:terra'
Any help is much appreciated as I have no idea how to troubleshoot this. Here is my session info:
`R version 4.1.3 (2022-03-10)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19044)
I installed smoothr using
install.packages('smoothr')
as well asdevtools::install_github("mstrimas/smoothr")
. However I am getting the following error when I runlibrary(smoothr)
:Error: package or namespace load failed for ‘smoothr’: class "SpatRaster" is not exported by 'namespace:terra'
Any help is much appreciated as I have no idea how to troubleshoot this. Here is my session info: `R version 4.1.3 (2022-03-10) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows 10 x64 (build 19044)Matrix products: default
locale: [1] LC_COLLATE=English_United States.1252 [2] LC_CTYPE=English_United States.1252
[3] LC_MONETARY=English_United States.1252 [4] LC_NUMERIC=C
[5] LC_TIME=English_United States.1252
attached base packages: [1] stats graphics grDevices utils datasets [6] methods base
other attached packages: [1] terra_1.6-17
loaded via a namespace (and not attached): [1] Rcpp_1.0.10 lattice_0.20-45 prettyunits_1.1.1 [4] png_0.1-7 class_7.3-20 ps_1.6.0
[7] rprojroot_2.0.2 digest_0.6.28 utf8_1.2.3
[10] R6_2.5.1 stats4_4.1.3 e1071_1.7-9
[13] pillar_1.9.0 rlang_1.1.0 curl_4.3.2
[16] rstudioapi_0.14 callr_3.7.0 raster_3.6-3
[19] desc_1.4.0 devtools_2.4.2 webshot_0.5.2
[22] htmlwidgets_1.5.4 munsell_0.5.0 proxy_0.4-26
[25] compiler_4.1.3 pkgconfig_2.0.3 base64enc_0.1-3
[28] pkgbuild_1.2.0 htmltools_0.5.2 tidyselect_1.2.0
[31] tibble_3.2.1 codetools_0.2-18 mapview_2.11.0
[34] fansi_1.0.4 crayon_1.5.2 dplyr_1.1.1
[37] withr_2.5.0 sf_1.0-8 grid_4.1.3
[40] satellite_1.0.4 lifecycle_1.0.3 DBI_1.1.3
[43] magrittr_2.0.3 units_0.8-0 scales_1.2.1
[46] KernSmooth_2.23-20 cli_3.6.1 cachem_1.0.6
[49] fs_1.5.0 remotes_2.4.2 leaflet_2.1.1
[52] sp_1.6-0 testthat_3.1.0 ellipsis_0.3.2
[55] generics_0.1.3 vctrs_0.6.1 tools_4.1.3
[58] leafem_0.2.0 glue_1.6.2 purrr_1.0.1
[61] crosstalk_1.2.0 processx_3.5.2 pkgload_1.2.3
[64] fastmap_1.1.0 colorspace_2.0-3 sessioninfo_1.2.1 [67] classInt_0.4-3 memoise_2.0.1 usethis_2.1.3 ` Thank you in advance for your help.