afrimapr / afrilearndata

small african spatial datasets for learning & teaching mapping in R
https://afrimapr.github.io/afrilearndata
15 stars 11 forks source link

Error in .local(.Object, ...) : with afrilandcover #5

Closed andysouth closed 3 years ago

andysouth commented 3 years ago

This error with library(raster) plot(afrilandcover) or mapview(afrilandcover)

but this is OK : levels(afrilandcover)

I recreated & saved the raster object which seemed to fix problem but then it came back ...

andysouth commented 3 years ago

Seems to happen locally after running writeRaster() on the object to save the file to the package.

Seems to work OK when installing package from Github.