View source: R/spp_references.R
spp_references | R Documentation |
Retrieve available references for a given taxon concept.
spp_references( taxon_id, raw = FALSE, token = NULL, verbose = TRUE, pause = 1, ... )
taxon_id |
a vector of character strings containing species' taxon
concept identifiers (see |
raw |
a logical. Should raw data be returned? |
token |
a character string containing the authentification token, see
https://api.speciesplus.net/documentation. Default is set to
|
verbose |
a logical. Should extra information be reported on progress? |
pause |
a duration (in second) to suspend execution for (see
|
... |
Further named parameters, see |
If raw
is set to TRUE
then an object of class spp_raw
(or
spp_raw_multi
if length(taxon_id) > 1
) is returned which is essentially
a list of lists (see option as = 'parsed'
in httr::content()
).
Otherwise, an object of class spp_refs
(or spp_refs_multi
if
length(taxon_id) > 1
) is returned which is a list of one
data frame:
references
that includes the identifier of the reference and the
corresponding citation.
https://api.speciesplus.net/documentation/v1/references/index.html
## Not run: # this calls will only work if a token is set and valid res1 <- spp_references(taxon_id = '4521') res2 <- spp_references(c('4521', '3210', '10255')) res3 <- spp_references(taxon_id = '4521', raw = TRUE, verbose = FALSE, config = httr::progress()) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.