Error in setValues(outras, m)

Hello, I am trying to read and plot a raster, it works fine but when I run the plot I have this error: Error in setValues(outras, m) :
could not find symbol "values" in environment of the generic function

My code:
wd<-setwd("C:/Users/X/X/X")
wd
CHM <- raster("Lchm.tif")
CHM
plot(CHM)

Hi, welcome to the forum

We need a reproducible example (reprex)

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.