format_moodle_web_questions: Format moodle question source file

Description Usage Arguments Value

View source: R/format_moodle_web_questions.R

Description

Format moodle question source file for insertion in a html doc such as an assignment file, answer key, etc.

Usage

 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"
)

Arguments

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

Value

source code lines


michaelfrancenelson/rmd.utils documentation built on Dec. 21, 2021, 5:57 p.m.