atlas_citation: Generate a citation for occurrence data
Description
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.
Usage
atlas_citation(data)
Value
Invisibly returns a string containing the citation for that dataset.
Primarily called for the side-effect of printing this string to the console.
Arguments
data
A tibble generated by atlas_occurrences() or similar