convert_coursera_quizzes {ottrpal} | R Documentation |
Convert Leanpub md quiz to Coursera yaml quiz
Description
Convert Leanpub md quiz to Coursera yaml quiz
Usage
convert_coursera_quizzes(
input_quiz_dir = "quizzes",
output_quiz_dir = "coursera_quizzes",
verbose = TRUE
)
Arguments
input_quiz_dir |
A path to a directory of leanpub formatted quiz md files. By default assumes "quizzes" and looks in current directory. |
output_quiz_dir |
A folder (existing or not) that the new coursera converted quizzes should be saved to. By default saves to "coursera_quizzes". |
verbose |
Would you like the progress messages: TRUE/FALSE? |
Value
A folder of coursera ready quiz files saved to the output directory specified as a yamls.
Examples
# Set up a directory with a quiz in it for this example
tdir <- tempfile()
dir.create(tdir, showWarnings = FALSE, recursive = TRUE)
file.copy(
from = good_quiz_path(),
to = file.path(tdir, basename(good_quiz_path()))
)
# Provide path to directory of quizzes
convert_coursera_quizzes(tdir)
system("rm -r coursera_quizzes")
[Package ottrpal version 1.2.1 Index]