Skip to contents

A function for formatting tutorial Rmd files. Used by check_current_tutorial() to re-format the currently open tutorial in RStudio. It renumbers the exercises so that they are in order. It ensures that chunk labels use this numbering, along with the section title.

Usage

format_tutorial(file_path)

Arguments

file_path

Character string.

Value

Formatted document with correct exercise, hint and test chunk labels.