Materializes a lazy handle by downloading the referenced dataset.
If the handle is already in "ready" state, returns it unchanged
unless force = TRUE.
Usage
on_fetch(handle, ...)
# S3 method for class 'openneuro_handle'
on_fetch(handle, quiet = FALSE, force = FALSE, ...)Value
The handle with updated state. For openneuro_handle,
returns the handle with state = "ready", path set to the
download location, and fetch_time set to current time.
See also
on_handle() to create a handle, on_path() to get path.
Examples
if (FALSE) { # \dontrun{
handle <- on_handle("ds000001", files = "participants.tsv")
handle <- on_fetch(handle) # Downloads now
handle$state # "ready"
} # }