sub_cloze_answer: Create substitute text for a cloze answer

Description Usage Arguments

View source: R/make_html_dropdown.R

Description

Create substitute text for a cloze answer

Usage

1
2
3
4
5
6
7
sub_cloze_answer(
  ans_num,
  check_var,
  sub_text = "<span>______</span>",
  cloze_fmt = "\\#\\#ANSWER%s\\#\\#",
  cat = FALSE
)

Arguments

ans_num

cloze answer number

check_var

if an object with this name exists, the substitute text will be returned, otherwise the cloze answer is returned

sub_text

text to substitute for the cloze code

cloze_fmt

format for the cloze code

cat

whether or not to cat() the output


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