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/Rtmpy58M2t/file1876766adbce...
#>  No schedule set, using Rmd files in episodes/ directory.
#> → Creating Lesson in /tmp/Rtmpy58M2t/file1876766adbce...

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

#> ────────────────────────────────────────────────────────────────────────
#> → Creating Lesson in /tmp/Rtmpy58M2t/file1876766adbce...

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

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

#>  Workflows up-to-date!
#> → Creating Lesson in /tmp/Rtmpy58M2t/file1876766adbce...

#>  Lesson successfully created in /tmp/Rtmpy58M2t/file1876766adbce
#> → Creating Lesson in /tmp/Rtmpy58M2t/file1876766adbce...

#> /tmp/Rtmpy58M2t/file1876766adbce
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"