Get citations by taxon name, IUCN id, and region
Usage
rl_sp_citation(
name = NULL,
id = NULL,
region = NULL,
key = NULL,
parse = TRUE,
...
)
rl_sp_citation_(name = NULL, id = NULL, region = NULL, key = NULL, ...)
Arguments
- name
(character) A taxonomic name
- id
(character) An IUCN identifier
- region
(character) A region name, see
rl_regions
for acceptable region identifiers (use the entries in theidentifier
column)- key
A IUCN API token. See
rl_use_iucn
.- parse
(logical) Whether to parse to list (
FALSE
) or data.frame (TRUE
). Default:TRUE
- ...
Curl options passed to
HttpClient
Value
A list, with the data in the result
slot, unless using
a function with a trailing underscore, in which case json as character
string is returned.
Examples
if (FALSE) { # \dontrun{
rl_sp_citation('Balaena mysticetus')
rl_sp_citation('Balaena mysticetus', region = 'europe')
rl_sp_citation(id = 12392)
rl_sp_citation(id = 2467, region = 'europe')
rl_sp_citation(id = 2467, region = 'europe', parse = FALSE)
rl_sp_citation_(id = 2467, region = 'europe')
} # }