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