GBIF download queue
Public fields
reqs
(list) a named list of objects of class
occ_download()
queue
(list) holds the queued jobs
Methods
Method print()
print method for the GbifQueue
class
Method new()
Create a new GbifQueue
object
Arguments
...
any number of
occ_download()
requests.list
any number of
occ_download()
requests aslazy
objects, called with e.g.,lazyeval::lazy()
Examples
if (FALSE) { # \dontrun{
if (interactive()) { # dont run in automated example runs, too costly
x <- GbifQueue$new(
occ_download(pred('taxonKey', 3119195), pred("year", 1976)),
occ_download(pred('taxonKey', 3119195), pred("year", 2001)),
occ_download(pred('taxonKey', 3119195), pred("year", 2001), pred_lte("month", 8)),
occ_download(pred('taxonKey', 3119195), pred("year", 2004)),
occ_download(pred('taxonKey', 3119195), pred("year", 2005))
)
x
x$reqs
x$add_all()
x
x$jobs()
x
x$remove(x$reqs[[1]])
x
x$reqs[[1]]$run()
x$reqs[[1]]$result
# pre-prepared download request
z <- occ_download_prep(
pred_in("basisOfRecord", c("HUMAN_OBSERVATION","OBSERVATION")),
pred("hasCoordinate", TRUE),
pred("hasGeospatialIssue", FALSE),
pred("year", 1993),
user = "foo", pwd = "bar", email = "foo@bar.com"
)
out <- GbifQueue$new(.list = list(z))
out
out$reqs
}} # }