convert_quiz {ottrpal}R Documentation

Convert Leanpub md quiz to Coursera yaml quiz

Description

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

Usage

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

## Not run: 

quiz_path <- good_quiz_path()

# Provide path to quiz to convert
convert_quiz(quiz_path)

## End(Not run)

[Package ottrpal version 1.2.1 Index]