Skip to contents

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.

Usage

cloud_drive_download_bulk(content, quiet = FALSE)

Arguments

content

(data.frame) Output of cloud_drive_ls()

quiet

All caution messages may be turned off by setting this parameter to TRUE.

Value

Invisibly returns the input content dataframe.

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)
  
}