16EAGLE / basemaps

A lightweight package for accessing basemaps from open sources in R 🗺️
https://jakob.schwalb-willmann.de/basemaps
GNU General Public License v3.0
57 stars 15 forks source link

Error #3

Closed fcorowe closed 3 years ago

fcorowe commented 3 years ago

First of all, thanks for this great package.

I am trying to load the package and I get the error below

library(basemaps)
Error: package or namespace load failed for ‘basemaps’:
 object ‘st_set_bbox’ is not exported by 'namespace:stars'

‘st_set_bbox’ is not being exported by 'namespace:stars'

Any ideas on how to resolve it?

16EAGLE commented 3 years ago

Thank you.

Which version of stars is installed on your system? Could it be possible that you have a stars version < 0.5-0 installed? st_set_bbox is exported by stars only since version 0.5-0 (see https://github.com/r-spatial/stars/blob/6d1d52130044b6ed8d001c1ef494bbd9cb4e5136/NEWS.md#version-05-0) which means you need at least stars 0.5-0 for basemaps to work.

Could you try installing the newest stars version form CRAN using install.packages("stars"), then reinstall basemaps and run library(basemaps) again?

16EAGLE commented 3 years ago

please reopen if issue persists.

fcorowe commented 3 years ago

Sorry - just catching up with this. Yes, that was the problem. I now have 0.5.3 and all works well. Thanks