add_exercise: Adds an exercise block to the end of a chapter

Description Usage Arguments Value

View source: R/add_chapters.R

Description

Adds an exercise block to the end of a chapter

Usage

1
add_exercise(chapter_file = "chapter1.md", exercise_id = "01_01")

Arguments

chapter_file

- name of the chapter, such as "chapter1.md" without the path

exercise_id

- id of the exercise, such as "01_03"

Value

- opened files including the chapter file, with the new exercise/codeblock appended and the exercises opened


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