Description Usage Arguments Value Examples
View source: R/extract_chapters.R
Parses exercise block into code chunks
1 | parse_exercise_list(exercise_list)
|
exercise_list |
list with each slot containing either type "multiple" or type "Normal" with the appropriate code chunks.
1 2 3 4 5 6 7 8 | chapter_file_path <- system.file("extdata/", package="decampr")
chapter_list <- get_chapters(chapter_file_path)
exercise_list <- get_exercises(chapter_list[[1]])
exercise_list <- parse_exercise_list(exercise_list)
#show multiple exercise example
exercise_list[[4]]
#show normal exercise example
exercise_list[[5]]
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.