pick_lesson: pick_lesson (or lesson_pick)

View source: R/pick_lesson.R

pick_lessonR Documentation

pick_lesson (or lesson_pick)

Description

Interactively lets you pick from a list of published Galactic Polymath units and will out put a virtualized Google Drive for Desktop path

Usage

pick_lesson(
  shared_drive = "s",
  show_all = FALSE,
  pick_all = FALSE,
  full_path = TRUE,
  sort_col = "LastUpdated",
  sort_decr = TRUE,
  lessons_dir = NULL,
  pull_path = TRUE,
  exclude_TEST = TRUE
)

lesson_pick(
  shared_drive = "s",
  show_all = FALSE,
  pick_all = FALSE,
  full_path = TRUE,
  sort_col = "LastUpdated",
  sort_decr = TRUE,
  lessons_dir = NULL,
  pull_path = TRUE,
  exclude_TEST = TRUE
)

Arguments

shared_drive

which shared drive do you want to find the lessons in? default= "s" Options:

  • "s" or "?" = GP-Studio (draft working directory, many users with access)

  • "l" or "??" = GP-Live (private, admin only)

  • "gp"= GalacticPolymath (public-facing read-only)

  • "sl" or "?!" = both GP-Studio and GP-Live

show_all

show an 'all' option? default=FALSE

pick_all

logical; Default=FALSE makes user pick unit. If TRUE, choice is set to "all" and will return paths to all projects in this directory.

full_path

do you want a full path to the chosen lesson? default= TRUE

sort_col

which column of output to sort by? Default "LastUpdated"; options=c("Unit","numID","ReleaseDate")

sort_decr

logical; sort by decreasing order? default= TRUE

lessons_dir

the path to the directory where lessons are held (make sure it leads with a /); default=NULL will resolve by calling lessons_get_path()

pull_path

logical; do you want to pull (and unlist) only the paths? default= TRUE. FALSE will return the tibble for the selected units

exclude_TEST

default=T; excludes test repositories

Value

the selected path, tibble, or string of names

Functions

  • lesson_pick():


galacticpolymath/GPpub documentation built on April 5, 2025, 6:04 p.m.