Clear the schedule in the lesson
Examples
tmp <- tempfile()
create_lesson(tmp, open = FALSE, rmd = FALSE)
#> → Creating Lesson in /tmp/Rtmp8upEuX/file1713668ab028...
#> ℹ No schedule set, using Rmd files in episodes/ directory.
#> → Creating Lesson in /tmp/Rtmp8upEuX/file1713668ab028...
#> → To remove this message, define your schedule in config.yaml or use `set_episodes()` to generate it.
#> → Creating Lesson in /tmp/Rtmp8upEuX/file1713668ab028...
#> ────────────────────────────────────────────────────────────────────────
#> → Creating Lesson in /tmp/Rtmp8upEuX/file1713668ab028...
#> ℹ To save this configuration, use
#>
#> set_episodes(path = path, order = ep, write = TRUE)
#> → Creating Lesson in /tmp/Rtmp8upEuX/file1713668ab028...
#> ☐ Edit /tmp/Rtmp8upEuX/file1713668ab028/episodes/introduction.md.
#> → Creating Lesson in /tmp/Rtmp8upEuX/file1713668ab028...
#> ✔ First episode created in /tmp/Rtmp8upEuX/file1713668ab028/episodes/introduction.md
#> → Creating Lesson in /tmp/Rtmp8upEuX/file1713668ab028...
#> ℹ Workflows up-to-date!
#> → Creating Lesson in /tmp/Rtmp8upEuX/file1713668ab028...
#> ✔ Lesson successfully created in /tmp/Rtmp8upEuX/file1713668ab028
#> → Creating Lesson in /tmp/Rtmp8upEuX/file1713668ab028...
#> /tmp/Rtmp8upEuX/file1713668ab028
get_episodes(tmp) # produces warning
#> [1] "introduction.md"
set_episodes(tmp, get_episodes(tmp), write = TRUE)
get_episodes(tmp) # no warning
#> [1] "introduction.md"
reset_episodes(tmp)
get_episodes(tmp) # produces warning again because there is no schedule
#> ℹ No schedule set, using Rmd files in episodes/ directory.
#> → To remove this message, define your schedule in config.yaml or use `set_episodes()` to generate it.
#> [1] "introduction.md"