Clear the schedule in the lesson
Examples
tmp <- tempfile()
create_lesson(tmp, open = FALSE, rmd = FALSE)
#> → Creating Lesson in /tmp/RtmpeI6Keh/file16e572b0aafb...
#> ℹ No schedule set, using Rmd files in episodes/ directory.
#> → Creating Lesson in /tmp/RtmpeI6Keh/file16e572b0aafb...
#> → To remove this message, define your schedule in config.yaml or use `set_episodes()` to generate it.
#> → Creating Lesson in /tmp/RtmpeI6Keh/file16e572b0aafb...
#> ────────────────────────────────────────────────────────────────────────
#> → Creating Lesson in /tmp/RtmpeI6Keh/file16e572b0aafb...
#> ℹ To save this configuration, use
#>
#> set_episodes(path = path, order = ep, write = TRUE)
#> → Creating Lesson in /tmp/RtmpeI6Keh/file16e572b0aafb...
#> ☐ Edit /tmp/RtmpeI6Keh/file16e572b0aafb/episodes/introduction.md.
#> → Creating Lesson in /tmp/RtmpeI6Keh/file16e572b0aafb...
#> ✔ First episode created in /tmp/RtmpeI6Keh/file16e572b0aafb/episodes/introduction.md
#> → Creating Lesson in /tmp/RtmpeI6Keh/file16e572b0aafb...
#> ℹ Workflows up-to-date!
#> → Creating Lesson in /tmp/RtmpeI6Keh/file16e572b0aafb...
#> ✔ Lesson successfully created in /tmp/RtmpeI6Keh/file16e572b0aafb
#> → Creating Lesson in /tmp/RtmpeI6Keh/file16e572b0aafb...
#> /tmp/RtmpeI6Keh/file16e572b0aafb
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"