| collapse_galah {galah} | R Documentation |
Generate a query
Description
collapse() constructs a valid query so it can be
inspected before being sent. It typically occurs at the end of a pipe,
traditionally begun with galah_call(), that is used to define a query.
As of version 2.0, objects of class data_request (created using
request_data()), metadata_request (from request_metadata()) or
files_request (from request_files()) are all supported by collapse().
Any of these objects can be created using galah_call() via the method
argument.
Usage
## S3 method for class 'data_request'
collapse(x, ..., mint_doi, .expand = FALSE)
## S3 method for class 'metadata_request'
collapse(x, .expand = FALSE, ...)
## S3 method for class 'files_request'
collapse(x, thumbnail = FALSE, ...)
Arguments
x |
An object of class |
... |
Arguments passed on to other methods |
mint_doi |
Logical: should a DOI be minted for this download? Only
applies to |
.expand |
Logical: should the |
thumbnail |
Logical: should thumbnail-size images be returned? Defaults
to |
Value
An object of class query, which is a list-like object containing at
least the slots type and url.