View source: R/rb_drive_create_folders.R
rb_drive_create_folders | R Documentation |
Create missing folders and get data frame with identifiers of all given folders
rb_drive_create_folders(
folders,
parent_id,
relative_path = NULL,
project = NULL,
update = FALSE,
base_folder = "rbackupr",
cache = TRUE
)
folders |
A character vector of folder names. |
parent_id |
Identifier of parent folder, where the new folders are to be created. |
project |
Defaults to NULL. Can be set once per session with 'rb_get_project_name()'. If given, must be a character vector of length one: name of the project. |
update |
Logical, defaults to FALSE. If TRUE, checks on Google Drive for newly updated files or folders, otherwise it assumes that only files and folders listed in cache exist online. |
if (interactive()) {
rb_drive_create_folders(
folders = c("folder_a", "folder_b"),
parent_id = rb_get_project()
)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.