A function for formatting primer tutorials.

It adjusts the code and hint chunk labels correctly.

This should make things easier for tutorial-writers because it will allow fast chunk label updating and quick formatting and checking

There is also no need to keep track of the exercise numbers because it is done for you in the add-in.

format_tutorial(file_path)

Arguments

file_path

Character string

Value

formatted document with correct code and hint chunk labels