Select an existing lesson to work on

Share:

Description

Choose a lesson to work on with swirlify by specifying the path to the lesson.yaml file or interactively choose a lesson file.

Usage

1
set_lesson(path_to_yaml = NULL, open_lesson = TRUE, silent = FALSE)

Arguments

path_to_yaml

Optional, full path to YAML lesson file. If not specified, then you will be prompted to select file interactively.

open_lesson

Should the lesson be opened automatically? Default is TRUE.

silent

Should the lesson be set silently? Default is FALSE.

Examples

1
2
3
4
5
6
7
8
## Not run: 
# Set the lesson interactively
set_lesson()

# You can also specify the path to the \code{yaml} file you wish to work on.
set_lesson(file.path("~", "R_Programming", "Functions", "lesson.yaml"))

## End(Not run)