Hi, I am reproducing the visium example
sfe <- McKellarMuscleData("full")
if (!file.exists("tissue_lowres_5a.jpeg")) {
download.file("https://raw.githubusercontent.com/pachterlab/voyager/main/vignettes/tissue_lowres_5a.jpeg",
destfile = "tissue_lowres_5a.jpeg")
}
sfe <- addImg(sfe,
imageSource = "/Users/elena/Desktop/spatial_course/geospatial/tissue_lowres_5a.jpeg",
sample_id = "Vis5A",
image_id = "lowres",
scale_fct = 1024/22208)
this got me the error
Error in methods::slot(value, what) :
no slot of name "ptr" for this object of class "SpatRaster"
Thanks