prevGBIFdownload: Download previously-prepared GBIF data sets

View source: R/prevGBIFdownload.R

prevGBIFdownloadR Documentation

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, 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

## 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
)

## End(Not run)


occCite documentation built on Nov. 2, 2024, 1:11 a.m.