padasch / tutorial_digital_soil_mapping

https://padasch.github.io/tutorial_digital_soil_mapping/
Other
2 stars 4 forks source link

leaflet error #4

Open stineb opened 11 months ago

stineb commented 11 months ago

I cannot quarto render locally because the leaflet call leaflet::addRasterImage() gives an error.:

Quitting from lines 198-250 [unnamed-chunk-7] (02-data_preparation.qmd)
Error in `leaflet::addRasterImage()`:
! inherits(x, "RasterLayer") is not TRUE
Backtrace:
  1. leaflet::addLegend(...)
 19. leaflet::addRasterImage(...)
 20. base::stopifnot(inherits(x, "RasterLayer"))
Execution halted

That's why I set the respective chunk to eval = FALSE and thus manage to render locally.