check_hint: Create check-fields and check-boxes for 'rmarkdown'

Description Usage Arguments Value Author(s) Examples

View source: R/check_hint.R

Description

Create check-fields and check-boxes for 'rmarkdown'

Usage

1
2
3
4
5
check_hint(
  hint_text,
  hint_title = "Click here to see/close the hint",
  hint_id = sample(1e+05:1, 1)
)

Arguments

hint_text

hint paragraph text; can contain markdown

hint_title

click paragraph text; can contain markdown

hint_id

unique identidier of the question

Value

returns the html and javascript code

Author(s)

George Moroz <agricolamz@gmail.com>

Examples

1
2
3
# ```{r, results='asis', echo=FALSE}
# check_hint("You can use argument `asis`!")
# ```

agricolamz/checkdown documentation built on Nov. 12, 2020, 4:43 p.m.