v <- terra::vect(system.file("extdata/cyl.gpkg", package = "tidyterra"))
v$group <- rep(c("A", "B", "C"), 3)
v |>
group_by(group) |>
group_split()
# Coerce the result to a SpatVectorCollection.
v |>
group_by(group) |>
group_split() |>
terra::svc()
Run the code above in your browser using DataLab