collect_galah {galah} | R Documentation |
Retrieve a database query
Description
collect()
attempts to retrieve the result of a query from the
selected API.
Usage
## S3 method for class 'data_request'
collect(x, ..., wait = TRUE, file = NULL)
## S3 method for class 'metadata_request'
collect(x, ...)
## S3 method for class 'files_request'
collect(x, ...)
## S3 method for class 'query'
collect(x, ..., wait = TRUE, file = NULL)
## S3 method for class 'computed_query'
collect(x, ..., wait = TRUE, file = NULL)
Arguments
x |
An object of class |
... |
Arguments passed on to other methods |
wait |
logical; should |
file |
(Optional) file name. If not given, will be set to |
Value
In most cases, collect()
returns a tibble
containing requested
data. Where the requested data are not yet ready (i.e. for occurrences when
wait
is set to FALSE
), this function returns an object of class query
that can be used to recheck the download at a later time.