Learn R Programming

occCite (version 0.5.1)

prevGBIFdownload: Download previously-prepared GBIF data sets

Description

Searches the list of a user's most recent 1000 downloads on the GBIF servers and returns the data set key for the most recently prepared download.

Usage

prevGBIFdownload(taxonKey = "No key", GBIFLogin)

Arguments

taxonKey

A taxon key as returned from rgbif::name_suggest().

GBIFLogin

An object of class GBIFLogin to log in to GBIF to begin the download.

Value

A GBIF download key, if one is available

Examples

Run this code
# NOT RUN {
GBIFLogin <- GBIFLoginManager(
  user = "theWoman",
  email = "ireneAdler@laScala.org",
  pwd = "sh3r"
)
taxKey <- rgbif::name_suggest(q = "Protea cynaroides",
                              rank = "species")$key[1]
prevGBIFdownload(
  taxonKey = taxKey,
  GBIFLogin = myGBIFLogin
)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab