Description Usage Arguments Value
View source: R/format_moodle_web_questions.R
Format moodle question source file for insertion in a html doc such as an assignment file, answer key, etc.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | format_moodle_web_questions(
f_names,
q_header = "Question\\s{0,}$",
delim = "^={3,}\\s{0,}$",
cloze_regex = "\\\\#\\\\#ANSWER[0-9]*\\\\#\\\\#",
cloze_replacement = "________",
rm_css_chunk_name = TRUE,
include_question = TRUE,
include_solution = FALSE,
include_metadata = FALSE,
soln_header = "Solution\\s{0,}$",
meta_header = "Meta-information\\s{0,}$",
q_ext = ".Rmd"
)
|
f_names |
a |
q_header |
a |
delim |
a |
cloze_regex |
blah |
cloze_replacement |
= "________", |
rm_css_chunk_name |
= TRUE, |
include_question |
= TRUE, |
include_solution |
= FALSE, |
include_metadata |
= FALSE, |
soln_header |
blah |
meta_header |
blah |
q_ext |
blah |
source code lines
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.