Use
read_data()
with an asset UUID for the latest version of a document.Use
read_data_version()
with a document version UUID for a specific version of a document.
Usage
read_data(document_uuid, ..., use_proxy = FALSE)
read_data_version(document_uuid, ..., use_proxy = FALSE)
Details
This function can be used to read the following data file types: csv, rds, xlsx.
The function works by downloading the file from Objective Connect to a
temporary file and reading it into R. The following functions are used to
read the data and any additional arguments (...
) will be passed to these.
File Type | Function |
csv | readr::read_csv() |
rds | readr::read_rds() |
xlsx | readxl::read_xlsx() |
To check what file type your document is (and thus what function additional
arguments will be passed to), use asset_info()
.
If there are other data file types you would like to download using this function, please open an issue on the GitHub repository.
More details on the endpoints used by these functions are available in the API documentation: