GbifQueue
GBIF download queue
reqs
(list) a named list of objects of class occ_download()
queue
(list) holds the queued jobs
print()
print method for the GbifQueue
class
GbifQueue$print(x, ...)
x
self
...
ignored
new()
Create a new GbifQueue
object
GbifQueue$new(..., .list = list())
...
any number of occ_download()
requests
.list
any number of occ_download()
requests as lazy
objects, called with e.g., lazyeval::lazy()
A new GbifQueue
object
add()
Add single jobs to the queue
GbifQueue$add(x)
x
an occ_download()
object
nothing returned; adds job (x
) to the queue
add_all()
Add all jobs to the queue
GbifQueue$add_all()
nothing returned
remove()
Remove a job from the queue
GbifQueue$remove(x)
x
an occ_download()
object
nothing returned
next_()
Get the next job in the queue
. if no more jobs,
returns empty list
GbifQueue$next_()
next job or empty list
last_()
Get the last job in the queue
. if no more jobs,
returns empty list
GbifQueue$last_()
last job or empty list
jobs()
Get number of jobs in the queue
GbifQueue$jobs()
(integer) number of jobs
clone()
The objects of this class are cloneable with this method.
GbifQueue$clone(deep = FALSE)
deep
Whether to make a deep clone.
## Not run: 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 } ## End(Not run)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.