gd_download_folder | R Documentation |
Downloads all downloadable files from given Google Drive folder
and saves them to specified local directory. Files will have the same names.
Use googledrive::drive_download()
for downloading individual files.
gd_download_folder(
folder_url = gd_get_proj(),
dest_dir = "data/input",
files_from_subfolders = FALSE,
overwrite = TRUE
)
folder_url |
Folder URL. |
dest_dir |
Local URL in which to store files. |
files_from_subfolders |
Whether to download also files from subdirectories.
Defaults to |
overwrite |
Whether to overwrite if file of same name exists. |
vector of paths to downloaded files
As it would be very difficult to mirror the folder exactly,
if files_from_subfolders
is set to TRUE
, files from subfolders will be
saved in the same directory, not in the respective subdirectories.
Bear this in mind when naming files in GDrive subfolders so as to avoid naming conflicts.
Other Workflow helpers:
draft_pdf()
,
manage_docx_header_logos()
## Not run:
gd_url <- "https://drive.google.com/drive/folders/1bCyR_VKAP_43NEujqisjN77hANnMKfHZ"
gd_download_folder(
folder_url = gd_url,
files_from_subfolders = T, overwrite = T
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.