drive_get_info: drive_get_info

View source: R/drive_get_info.R

drive_get_infoR Documentation

drive_get_info

Description

Extract galacticPubs-relevant information from a GP lesson file, with an expected format of ShortTitle_L1_G5-9_wksht (TEACHER)

Usage

drive_get_info(
  dribble,
  set_lsn = NULL,
  set_envir = NULL,
  set_grades = NULL,
  validate = FALSE,
  all_info = FALSE
)

Arguments

dribble

a dribble input (e.g. piped from googledrive::drive_get()) for a single file

set_lsn

set lesson manually (not from file name)

set_envir

set envir output manually (not from file name); partial string matching of options "classroom", "remote", "assessments"

set_grades

set grade bands manually (not from file name); passed as a string (e.g. "5-9")

validate

logical; do you want to throw an error if any of the following are missing? default= FALSE

  • shortTitle

  • title

  • ⁠_lsn⁠

  • ⁠_grades⁠

  • ⁠_itemType⁠

  • ⁠_fileType⁠

all_info

logical; keep the full drive_resources list with all the dribble meta info for each row item? default=FALSE

Details

Also extracts the modification datetime and drive link. 'title' and 'description' are also included to match TeachMatLinks fields, though they cannot be populated automatically.

Value

a tibble with a row corresponding to each row in dribble input, with title and other information extracted from filename

See Also

Other Google Drive Functions: drive_contents(), drive_copy_missing_files(), drive_cp_dir(), drive_find_path(), drive_inSync(), drive_new_from_template(), drive_open(), init_lesson_meta(), update_teach_links()

Examples

  drive_find_path("GP-Studio/Edu/Lessons/assumptionsMatter_femalesSing_math/teaching-materials/classroom/classroom_5-6/handouts/Females Sing_P1_G5-6 wksht (STUDENT)_classroom.gdoc")


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