format_tutorial {tutorial.helpers} | R Documentation |
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.
format_tutorial(file_path)
file_path |
Character string. |
Formatted document with correct exercise, hint and test chunk labels.