rb_get_folders: Gets cached folder with given parent, or update them from...

View source: R/rb_get_cache.R

rb_get_foldersR Documentation

Gets cached folder with given parent, or update them from Google Drive upon request

Description

Gets cached folder with given parent, or update them from Google Drive upon request

Usage

rb_get_folders(
  dribble_id,
  update = FALSE,
  project = NULL,
  base_folder = "rbackupr",
  cache = TRUE
)

Arguments

dribble_id

The dribble identifier of a folder on Google Drive.

update

Logical, defaults to FALSE. If TRUE, checks on Google Drive for newly updated folders.

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.

cache

Logical, defaults to TRUE. Stores locally cached information about base and project folder.

Value

A data frame with three columns: name (of the folder), id (of the dribble of the folder), parent_id (dribble id of the parent folder)

Examples


if (interactive()) {
  rb_get_folders(rb_drive_find_project())
}

giocomai/rbackupr documentation built on Oct. 18, 2023, 9:36 p.m.