diff --git a/R/get_bioreg.R b/R/get_bioreg.R index 4d3f59c..e720501 100644 --- a/R/get_bioreg.R +++ b/R/get_bioreg.R @@ -8,7 +8,7 @@ #' \item{link}{The URL to download the file.} #' \item{description}{A short description of the file.} #' } -#' @example +#' @examples #' \dontrun{ #' bioreg_list #' } diff --git a/man/make_tiles.Rd b/man/make_tiles.Rd index 8c41b01..4231384 100644 --- a/man/make_tiles.Rd +++ b/man/make_tiles.Rd @@ -26,7 +26,12 @@ converted into a POLYGON() argument, or divided into Ntiles of regular fragments converted into POLYGON() arguments and smaller SpatExtent. } \examples{ -inst/examples/make_tiles_help.R +# Load the European Alps Extent +shp.path <- paste0(system.file(package = "gbif.range"),"/extdata/shp_lonlat.shp") +shp.lonlat <- terra::vect(shp.path) + +# Apply the function to divide the extent in ~20 fragments +mt = make_tiles(geo=shp.lonlat,Ntiles=20,sext=TRUE) } \references{ Chauvier, Y., Thuiller, W., Brun, P., Lavergne, S., Descombes, P., Karger, D. N., ... & Zimmermann,