Convert a Leanpub-formatted md quiz file to a Coursera-formatted yaml quiz file in preparation for uploading to Coursera.

convert_quiz(quiz_path, output_quiz_dir = dirname(quiz_path), verbose = TRUE)

Arguments

quiz_path

A path to a quiz .md file to be converted.

output_quiz_dir

An existing folder where you would like the new version of the quiz to be saved. Default is the directory of the quiz_path provided

verbose

Would you like the progress messages?

Value

A Coursera-ready quiz file saved to the output directory specified as a yaml.

Examples

if (FALSE) {

quiz_path <- good_quiz_path()

# Provide path to quiz to convert
convert_quiz(quiz_path)
}