DownReq | R Documentation |
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)
result
(list) holds the result of the http request
new()
Create a new DownReq
object
DownReq$new(x)
x
either a lazy object with an object of class occ_download
, or an
object of class occ_download_prep
A new DownReq
object
print()
print method for the DownReq
class
DownReq$print(x, ...)
x
self
...
ignored
run()
execute http request
DownReq$run()
nothing, puts the http response in $result
status()
check http request status
DownReq$status()
output of 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.
## Not run:
res <- DownReq$new(occ_download_prep(pred("basisOfRecord", "LITERATURE"),
pred("year", "1956")
))
res
# res$run()
# res
# res$status()
# res$result
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.