rgbif has a function gbif_citation() to help users get citations that works with the various data fetching functions. For example:
# works also for occ_data()
x <- occ_search(taxonKey=9206251, limit=2)
gbif_citation(x)
#> [[1]]
#> <<rgbif citation>>
#> Citation: naturgucker.de. naturgucker. Occurrence dataset
#> https://doi.org/10.15468/uc1apo accessed via GBIF.org on 2019-10-04..
#> Accessed from R via rgbif (https://github.com/ropensci/rgbif) on
#> 2019-10-04
#> Rights:
#>
#> [[2]]
#> <<rgbif citation>>
#> Citation: Vanreusel W, Barendse R, Steeman R, Gielen K, Swinnen K, Desmet P,
#> Herremans M (2019). Waarnemingen.be - Non-native plant occurrences in
#> Flanders and the Brussels Capital Region, Belgium. Version 1.10.
#> Natuurpunt. Occurrence dataset https://doi.org/10.15468/smdvdo accessed
#> via GBIF.org on 2019-10-04.. Accessed from R via rgbif
#> (https://github.com/ropensci/rgbif) on 2019-10-04
#> Rights:
And works for downloads:
d1 <- occ_download_get("0000122-171020152545675")
gbif_citation(d1)
#> $download
#> [1] "GBIF Occurrence Download https://doi.org/10.15468/dl.yghxj7 Accessed from R via rgbif (https://github.com/ropensci/rgbif) on 2017-10-20"
#>
#> $datasets
#> $datasets[[1]]
#> <<rgbif citation>>
#> Citation: Grant S, Jones J (2017). Field Museum of Natural History (Zoology)
#> Invertebrate Collection. Version 18.6. Field Museum. Occurrence Dataset
#> https://doi.org/10.15468/6q5vuc accessed via GBIF.org on 2017-10-20..
#> Accessed from R via rgbif (https://github.com/ropensci/rgbif) on
#> 2019-10-04
#> Rights: To the extent possible under law, the publisher has waived all
#> rights to these data and has dedicated them to the Public Domain (CC0
#> 1.0). Users may copy, modify, distribute and use the work, including
#> for commercial purposes, without restriction.
#>
# .... cutoff
Also works for an occurrence key, or a dataset key