This function obtains information of a single eLTER site,
as a stored in DEIMS-SDR catalogue,
through the DEIMS-SDR API.
Arguments
- deimsid
A
character. The DEIMS ID of the site from DEIMS-SDR website. DEIMS ID information here.- categories
A
categories. This parameter selects which categories or categories are retrieved and returned in the result. Possible value are: 'Affiliations', 'Contacts', 'EnvCharacts', 'General', 'Infrastructure', 'observedProperties', 'RelateRes'. Multiple values can be indicated. A site's boundary is always returned.- show_map
A
boolean. When TRUE aleafletmap is plotted as side effect. Default FALSE.- with_locations
A
boolean. When TRUE, and onlyshow_mapis TRUE, all site related locations are showed in the plotted map. Default FALSE.
Value
The output of the function is a sf with the information about
the site.
If the boundary is missing from DEIMS-SDR a tibble is returned.
Author
Alessandro Oggioni, phD (2020) oggioni.a@irea.cnr.it
Paolo Tagliolato, phD tagliolato.p@irea.cnr.it
Examples
site <- get_site_info(
deimsid = "https://deims.org/f30007c4-8a6e-4f11-ab87-569db54638fe",
categories = c("EnvCharacts", "Affiliations"),
show_map = TRUE,
with_locations = FALSE
)
#> Error in httr2::req_perform(.): Failed to perform HTTP request.
#> Caused by error in `curl::curl_fetch_memory()`:
#> ! Timeout was reached [deims.org]:
#> SSL connection timeout
site
#> Error: object 'site' not found
