Skip to content

Commit

Permalink
Update examples
Browse files Browse the repository at this point in the history
  • Loading branch information
8Ginette8 committed Jul 16, 2024
1 parent fd80c1f commit 81d9006
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 24 deletions.
4 changes: 1 addition & 3 deletions R/get_status.R
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,7 @@
#' information facility API. 10.5281/zenodo.6023735
#' @seealso The rgbif package for additional and more general approaches on how to retrieve
#' scientific names from the GBIF backbone taxonomy.
#' @examples
#' get_status("Cypripedium calceolus",all=FALSE)
#' get_status("Cypripedium calceolus",all=TRUE)
#' @examples inst/examples/get_status_help.R
#'
#' @export
#' @importFrom rgbif name_backbone name_usage
Expand Down
9 changes: 1 addition & 8 deletions R/make_tiles.R
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,7 @@
#' Chauvier, Y., Thuiller, W., Brun, P., Lavergne, S., Descombes, P., Karger, D. N., ... & Zimmermann,
#' N. E. (2021). Influence of climate, soil, and land cover on plant species distribution in the
#' European Alps. Ecological monographs, 91(2), e01433. 10.1002/ecm.1433
#' @examples
#'
#' # 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); mt
#' @examples inst/examples/make_tiles_help.R
#' @importFrom terra ext
#' @export
#'
Expand Down
5 changes: 3 additions & 2 deletions inst/examples/get_status_help.R
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# Get the taxonomy and IUCN status of Panthera tigris
get_status("Panthera tigris",all=FALSE)
# Get the taxonomy and IUCN status of Panthera tigris (with and without related names)
get_status("Cypripedium calceolus",all=FALSE)
get_status("Cypripedium calceolus",all=TRUE)
6 changes: 6 additions & 0 deletions inst/examples/make_tiles_help.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# 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); mt
4 changes: 2 additions & 2 deletions man/get_range.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions man/get_status.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 1 addition & 7 deletions man/make_tiles.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 81d9006

Please sign in to comment.