| occ_download_wait {rgbif} | R Documentation | 
Wait for an occurrence download to be done
Description
Wait for an occurrence download to be done
Usage
occ_download_wait(
  x,
  status_ping = 5,
  curlopts = list(http_version = 2),
  quiet = FALSE
)
Arguments
| x | and object of class  | 
| status_ping | (integer) seconds between each  | 
| curlopts | (list) curl options, as named list, passed on to
 | 
| quiet | (logical) suppress messages. default:  | 
Value
an object of class occ_download_meta, see occ_download_meta()
for details
Note
occ_download_queue() is similar, but handles many requests
at once; occ_download_wait handles one request at a time
See Also
Other downloads: 
download_predicate_dsl,
occ_download_cached(),
occ_download_cancel(),
occ_download_dataset_activity(),
occ_download_datasets(),
occ_download_get(),
occ_download_import(),
occ_download_list(),
occ_download_meta(),
occ_download_queue(),
occ_download()
Examples
## Not run: 
x <- occ_download(
  pred("taxonKey", 9206251),
  pred_in("country", c("US", "MX")),
  pred_gte("year", 1971)
)
res <- occ_download_wait(x)
occ_download_meta(x)
# works also with a downloadkey
occ_download_wait("0000066-140928181241064") 
## End(Not run)