download_file: Download a Google Drive file

Description Usage Arguments Value

View source: R/files.R

Description

download a Google Drive file in a specified format and save it to disk.

Usage

1
download_file(metadata, download_type, destination, overwrite = TRUE, ...)

Arguments

metadata

a metadata object retrieved from file_metadata or list_files.

download_type

the format to download the file in. Available formats for a specific file can be found in the "exportLinks" field of a metadata object.

destination

a file path to write the downloaded file to.

overwrite

whether to overwrite any existing file at destination. Set to TRUE by default.

...

any further arguments to pass to httr's GET.

Value

TRUE if the file could be downloaded, an error otherwise.


noamross/driver documentation built on May 23, 2019, 9:30 p.m.