parse_wd: parse_wd

parse_wdR Documentation

parse_wd

Description

Helper function to handle Working Directory strings. Here's what happens when you supply the following:

  • "?" or "?s": invokes pick_lesson("s") to choose from among lessons in the 'GP-Studio' shared drive.

  • "??" or "?l": invokes pick_lesson("l") to pick a path to lessons on the 'GP-LIVE' drive.

  • "???" or "?gp": gives you pick_lesson("gp") to pick a path to lesson teaching materials found on 'GalacticPolymath' drive

  • "?!" or "sl": invokes pick_lesson("sl") to pick from units on 'GP-Studio' and 'GP-LIVE'

Usage

parse_wd(str = NULL, ...)

Arguments

str

is a string supplied as the WD parameter in a galacticPubs function. Often "?"

...

other parameters passed to pick_lesson()

Value

if str is not "?" or "??", it will return str. Otherwise, returns the result of pick_lesson()


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