parse_exercise_list: Parses exercise block into code chunks

Description Usage Arguments Value Examples

View source: R/extract_chapters.R

Description

Parses exercise block into code chunks

Usage

1
parse_exercise_list(exercise_list)

Arguments

exercise_list

Value

list with each slot containing either type "multiple" or type "Normal" with the appropriate code chunks.

Examples

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]]

laderast/decampr documentation built on Feb. 25, 2020, 7:12 a.m.