I have had no problems initially in using levelplot() to process and plot categorical/ratified rasters (ratify(raster)) w/ legend. Outside the pipeline, using individual raster objects, I was able to produce multiple pngs of the plots in the for in function produce_lc_img().
In the pipeline, I am Getting the following error:
x error target p3_save_map_frames
• end pipeline
Error in tar_throw_run(target$metrics$error) :
no applicable method for 'levelplot' applied to an object of class "c('RasterLayer', 'Raster', 'BasicRaster')"
Error in `tar_throw_run()`:
! callr subprocess failed: no applicable method for 'levelplot' applied to an object of class "c('RasterLayer', 'Raster', 'BasicRaster')"
Visit https://books.ropensci.org/targets/debugging.html for debugging advice.
Run `rlang::last_error()` to see where the error occurred.
I have had no problems initially in using levelplot() to process and plot categorical/ratified rasters (ratify(raster)) w/ legend. Outside the pipeline, using individual raster objects, I was able to produce multiple pngs of the plots in the for in function produce_lc_img().
In the pipeline, I am Getting the following error: