kobo_attachment_download: Download submitted files associatted to KoboToolbox API asset

View source: R/kobo_data.R

kobo_attachment_downloadR Documentation

Download submitted files associatted to KoboToolbox API asset

Description

Download submitted files associatted to a KoboToolbox API asset

Usage

kobo_attachment_download(x, folder, progress, overwrite, n_retry)

Arguments

x

the asset uid or the kobo_asset object.

folder

character, the folder where you store the downloaded files. The working directory is the default folder.

progress

logical, whether or not you want to see the progess via message. Default to FALSE.

overwrite

logical, whether or not you want to overwrite existing media files. Default to FALSE.

n_retry

integer, Number of time you should retry the failed request. Default to 3L.

Value

Silently returns a vector of files paths.

Examples

## Not run: 
kobo_setup()
uid <- "a9cwEQcbWqWzA5hzkjRUWi"
kobo_attachment_download(uid, folder = tempdir())

## End(Not run)


dickoa/robotoolbox documentation built on Dec. 20, 2024, 12:33 a.m.