Skip to contents

Create rbackupr project

Usage

rb_drive_find_project(
  project = NULL,
  base_folder = "rbackupr",
  create = TRUE,
  cache = TRUE
)

rb_drive_create_project(
  project = NULL,
  base_folder = "rbackupr",
  create = TRUE,
  cache = TRUE
)

rb_get_project(
  project = NULL,
  base_folder = "rbackupr",
  create = TRUE,
  cache = TRUE
)

Arguments

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.

create

Logical, defaults to TRUE. Creates folder if not existing.

Value

A dribble corresponding to the project folder.

Examples

if (FALSE) {
if (interactive()) {
  rb_drive_find_project(project = "example")
}
}

if (FALSE) {
if (interactive()) {
rb_drive_create_project(project = "example")
}
}
rb_get_project(project = "example")
#> Error in drive_auth(): Can't get Google credentials.
#>  Are you running googledrive in a non-interactive session? Consider:
#>  Call `drive_deauth()` to prevent the attempt to get credentials.
#>  Call `drive_auth()` directly with all necessary specifics.
#>  See gargle's "Non-interactive auth" vignette for more details:
#>  <https://gargle.r-lib.org/articles/non-interactive-auth.html>