get_dropdown: Helpers to extract contents of dropdown menus on the site

Description Usage Arguments Value Examples

View source: R/get_dropdown.R

Description

This fuction will extract the resources that exist and are listed in the config file.

Usage

1
2
3
4
5
6
7
8
9
get_dropdown(path = ".", folder, trim = TRUE)

get_episodes(path = ".", trim = TRUE)

get_learners(path = ".", trim = TRUE)

get_instructors(path = ".", trim = TRUE)

get_profiles(path = ".", trim = TRUE)

Arguments

path

the path to the lesson, defaults to the current working directory

folder

the folder to extract fromt he dropdown menues

trim

if TRUE (default), only the file name will be presented. When FALSE, the full path will be prepended.

Value

a character vector of episodes in order of presentation

Examples

1
2
3
4
tmp <- tempfile()
create_lesson(tmp)
get_episodes(tmp)
get_learners(tmp) # information for learners

zkamvar/sandpaper documentation built on Nov. 25, 2021, 1:16 p.m.