If a tibble
containing occurrences was generated using galah (either via
collect()
or atlas_occurrences()
), it
will usually contain associated metadata stored in attributes()
that can be
used to build a citation for that dataset. This function simply extracts that
information, formats it, then both invisibly returns the formatted citation
and prints it to the console.
Arguments
- data
A
tibble
generated byatlas_occurrences()
or similar
Value
Invisibly returns a string containing the citation for that dataset. Primarily called for the side-effect of printing this string to the console.
Examples
if (FALSE) { # \dontrun{
x <- galah_call() |>
identify("Heleioporus") |>
filter(year == 2022) |>
collect()
atlas_citation(x)
} # }