# NOT RUN {
# Get the examples provided with the package
ex_files <- example_paths()
if (interactive()) {
# Produce 40 exam questions in the currect directory
# using the example that contains a plot; the
# output is "final_exam.zip", and we want to
# distort the shortname used by 'MyLearn'
exams2mylearn(ex_files["plot"], 40, dir = ".",
outfile = "final_exam_question_1.zip",
distort.shortname = TRUE)
}
# For special characters, please check
?special_characters
# Takes some time:
# }
# NOT RUN {
# Produce 500 exam questions in the current
# directory using a different example with more
# verbose output from exams::exams2html
exams2mylearn(ex_files["single_choice"], 500,
dir = ".", name = "final_exam_question_1",
verbose = TRUE)
# }
Run the code above in your browser using DataLab