Compatibility issues with terra
SpatLyu opened this issue · 3 comments
SpatLyu commented
library(ceramic)
#> Loading required package: terra
#> terra 1.7.65
library(terra)
template <- rast(ext(527358, 527880, 5252204, 5252704), res = .3, crs = "EPSG:32755")
ortho <- cc_location(template, type = "tasmap_orthophoto")
#> Error in .crs_crs(x): no slot of name "ptr" for this object of class "SpatRaster"
plot(ortho)
#> Error in h(simpleError(msg, call)): error in evaluating the argument 'x' in selecting a method for function 'plot': object 'ortho' not found
Created on 2024-01-21 with reprex v2.1.0
It seems that there is a compatibility issue with the terra
package when the type
of the cc_location
function is specified as 'tasmap_orthophoto'
. This issue may be related to changes in the SpatRaster
class attributes within the terra
package.
mdsumner commented
ah indeed, actually this has been fixed on github if you want a workaround:
remotes::install_github("hypertidy/ceramic")
I try to push a release to CRAN
SpatLyu commented
Good job, thank you for your prompt response.
mdsumner commented
v0.9.0 now on CRAN, thanks for the reminder!