
Collect occurrence records from a pre-existing DOI or URL
Source:R/collect_occurrences.R
collect_occurrences.Rd
Download occurrence records using an existing DOI or URL. Pre-existing DOIs
and URLs come from previously generated downloads using atlas_occurrences
or online.
Arguments
- url
string
: Retrieve occurrence records previously downloaded from the ALA, using the URL provided via email.- doi
string
: Retrieve occurrence records previously downloaded from the ALA, using the DOI generated by the data.
Examples
if (FALSE) {
# Download previously retrieved records using an existing DOI or URL
collect_occurrences(doi = "your-doi")
# DOIs can be minted by adding `mint_doi = TRUE` to `atlas_occurrences()`
records <-
galah_call() |>
galah_identify("perameles") |>
galah_filter(year == 2001) |>
atlas_occurrences(mint_doi = TRUE)
attributes(records)$doi # return minted doi
}