Search, download, analyze and cite (repeat if necessary) - GBIF Data Blog

Hi @rortiz,

You can use occ_download to start downloads and you can use gbif_citation() to get the citation with DOI, e.g.,

> occ_download(pred("taxonKey",2480187),user="xyz",pwd="xyz",email="abc@xyz.org")
<<gbif download>>
  Username: xyz
  E-mail: abc@xyz.org
  Format: DWCA
  Download key: 0001902-210914110416597
> gbif_citation(occ_download_meta("0001902-210914110416597"))$download
[1] "GBIF Occurrence Download https://doi.org/10.15468/dl.md7n9g Accessed from R via rgbif (https://github.com/ropensci/rgbif) on 2021-09-15"