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

View source: R/get_dropdown.R

get_dropdownR Documentation

Helpers to extract contents of dropdown menus on the site

Description

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

Usage

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

tmp <- tempfile()
create_lesson(tmp, open = FALSE, rmd = FALSE)
get_episodes(tmp)
get_learners(tmp) # information for learners

zkamvar/sandpaper documentation built on April 21, 2024, 1:17 a.m.