source_gpkg <- system.file("extdata", "clc.gpkg", package = "clc")
clo <- clc(source = source_gpkg, layer_name = "clc")
r <- clo |>
as_raster(resolution = 50)
clc_r <- r |>
get_raster()
Run the code above in your browser using DataLab