Bulk download contents from Google Drive
Source:R/drive_transfer_bulk.R
cloud_drive_download_bulk.Rd
Downloads multiple files from a Google Drive folder based on the output dataframe from cloud_drive_ls. This function streamlines the process of downloading multiple files by allowing you to filter and select specific files from the Google Drive listing and then download them in bulk.
Arguments
- content
(data.frame) Output of
cloud_drive_ls()
- quiet
All caution messages may be turned off by setting this parameter to
TRUE
.
Examples
if (FALSE) { # interactive()
# provided there's a folder called "toy_data" in the root of your project's
# Google Drive folder, and this folder contains "csv" files
cloud_drive_ls("toy_data") |>
filter(type == "csv") |>
cloud_drive_download_bulk()
# clean up
unlink("toy_data", recursive = TRUE)
}