powered by
handles single requests for GbifQueue
req
(list) internal holder for the request
type
(list) type, one of "lazy" (to be lazy evaluated) or "pre" (run with occ_download_exec internal fxn)
occ_download_exec
result
(list) holds the result of the http request
DownReq$new()
DownReq$print()
DownReq$run()
DownReq$status()
DownReq$clone()
new()
Create a new DownReq object
DownReq
DownReq$new(x)
x
either a lazy object with an object of class occ_download, or an object of class occ_download_prep
occ_download
occ_download_prep
A new DownReq object
print()
print method for the DownReq class
DownReq$print(x, ...)
self
...
ignored
run()
execute http request
nothing, puts the http response in $result
$result
status()
check http request status
output of occ_download_meta()
occ_download_meta()
clone()
The objects of this class are cloneable with this method.
DownReq$clone(deep = FALSE)
deep
Whether to make a deep clone.
if (FALSE) { res <- DownReq$new(occ_download_prep(pred("basisOfRecord", "LITERATURE"), pred("year", "1956") )) res # res$run() # res # res$status() # res$result }
Run the code above in your browser using DataLab