@@ -57,13 +57,21 @@ download_helper <- function(document_uuid,
5757# ' * Use `download_file_version()` with a document version UUID for a specific
5858# ' version of a document.
5959# '
60+ # ' @details
61+ # ' More details on the endpoints used by these functions are available in the
62+ # ' API documentation:
63+ # nolint start: line_length_linter
64+ # ' * \href{https://secure.objectiveconnect.co.uk/publicapi/1/swagger-ui/index.html?configUrl=/publicapi/1/v3/api-docs/swagger-config#/Assets/download}{`download_file`}
65+ # ' * \href{https://secure.objectiveconnect.co.uk/publicapi/1/swagger-ui/index.html?configUrl=/publicapi/1/v3/api-docs/swagger-config#/Assets/downloadVersion}{`download_file_version`}
66+ # nolint end
67+ # '
6068# ' @param document_uuid UUID of asset or document version
6169# ' @param folder Folder to save downloaded file to
6270# ' @param overwrite Logical to indicate whether file should be overwritten if
6371# ' already exists. Defaults to `FALSE`.
6472# ' @inheritParams objr
6573# '
66- # ' @return An httr2 [httr2:: response()][response] (invisibly)
74+ # ' @return API response (invisibly)
6775# '
6876# ' @export
6977
@@ -107,11 +115,8 @@ download_file_version <- function(document_uuid,
107115# ' * Use `read_data_version()` with a document version UUID for a specific
108116# ' version of a document.
109117# '
110- # ' @param document_uuid UUID of asset or document version
111- # ' @param ... Additional arguments passed to read function. See details.
112- # ' @inheritParams objr
113- # '
114- # ' @details This function can be used to read the following data file types:
118+ # ' @details
119+ # ' This function can be used to read the following data file types:
115120# ' csv, rds, xlsx.
116121# '
117122# ' The function works by downloading the file from Objective Connect to a
@@ -132,7 +137,18 @@ download_file_version <- function(document_uuid,
132137# ' function, please \href{https://github.com/ScotGovAnalysis/objr/issues/new}{open an issue on the GitHub repository}.
133138# nolint end
134139# '
135- # ' @return For csv and xlsx files, a data frame. For rds files, an R object.
140+ # ' More details on the endpoints used by these functions are available in the
141+ # ' API documentation:
142+ # nolint start: line_length_linter
143+ # ' * \href{https://secure.objectiveconnect.co.uk/publicapi/1/swagger-ui/index.html?configUrl=/publicapi/1/v3/api-docs/swagger-config#/Assets/download}{`read_data`}
144+ # ' * \href{https://secure.objectiveconnect.co.uk/publicapi/1/swagger-ui/index.html?configUrl=/publicapi/1/v3/api-docs/swagger-config#/Assets/downloadVersion}{`read_data_version`}
145+ # nolint end
146+ # '
147+ # ' @param document_uuid UUID of asset or document version
148+ # ' @param ... Additional arguments passed to read function. See details.
149+ # ' @inheritParams objr
150+ # '
151+ # ' @return Format depends on file type. See details.
136152# '
137153# ' @export
138154
0 commit comments