Skip to contents

Clear the schedule in the lesson

Usage

reset_episodes(path = ".")

Arguments

path

path to the lesson

Value

NULL, invisibly

Examples

tmp <- tempfile()
create_lesson(tmp, open = FALSE, rmd = FALSE)
#> → Creating Lesson in /tmp/RtmpZYggRm/file17f9465ca56b...
#>  No schedule set, using Rmd files in episodes/ directory.
#> → Creating Lesson in /tmp/RtmpZYggRm/file17f9465ca56b...

#> To remove this message, define your schedule in config.yaml or use `set_episodes()` to generate it.
#> → Creating Lesson in /tmp/RtmpZYggRm/file17f9465ca56b...

#> ────────────────────────────────────────────────────────────────────────
#> → Creating Lesson in /tmp/RtmpZYggRm/file17f9465ca56b...

#>  To save this configuration, use
#> 
#> set_episodes(path = path, order = ep, write = TRUE)
#> → Creating Lesson in /tmp/RtmpZYggRm/file17f9465ca56b...

#>  Edit '/tmp/RtmpZYggRm/file17f9465ca56b/episodes/introduction.md'
#>  First episode created in /tmp/RtmpZYggRm/file17f9465ca56b/episodes/introduction.md
#> → Creating Lesson in /tmp/RtmpZYggRm/file17f9465ca56b...

#>  Workflows up-to-date!
#> → Creating Lesson in /tmp/RtmpZYggRm/file17f9465ca56b...

#>  Lesson successfully created in /tmp/RtmpZYggRm/file17f9465ca56b
#> → Creating Lesson in /tmp/RtmpZYggRm/file17f9465ca56b...

#> /tmp/RtmpZYggRm/file17f9465ca56b
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"