Skip to contents

[Experimental]

Download occurrence records using an existing DOI or URL. Pre-existing DOIs and URLs come from previously generated downloads using atlas_occurrences or online.

Usage

collect_occurrences(url, doi)

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.

Value

An object of class tbl_df and data.frame (aka a tibble) of occurrences

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
}