rgbif (version 1.4.0)

DownReq: Download request

Description

Download request

Arguments

x

either a lazy object with an object of class occ_download, or an object of class occ_download_prep

Details

Methods

new(...)

initialize request

run(...)

execute http request

status(...)

check http request status

Examples

Run this code
# NOT RUN {
# res <- DownReq$new(occ_download('taxonKey = 3119195', "year = 1991"))
# res
# res$req
# res$run()
# (requests <- GbifQueue$new())
# res$run(keep_track = TRUE)
# requests
# res$status()

# prepared query
res <- DownReq$new(occ_download_prep("basisOfRecord = LITERATURE", 
  user = "foo", pwd = "bar", email = "foo@bar.com"))
res
# res$run()
# res
# res$status()
# res$result
# }

Run the code above in your browser using DataCamp Workspace