check_hint: Create hint for 'rmarkdown'

View source: R/check_hint.R

check_hintR Documentation

Create hint for 'rmarkdown'

Description

Create hint for 'rmarkdown'

Usage

check_hint(
  hint_text,
  hint_title = "Click here to see/close the hint",
  type = c("onclick", "onmouseover", "ondblclick"),
  hint_id = sample(1e+05:1, 1)
)

Arguments

hint_text

hint paragraph text; can contain markdown

hint_title

click paragraph text; can contain markdown

type

character that describes behavior of the hint. Possible values are: onclick, onmouseover, ondblclick

hint_id

unique identifier of the question

Value

returns the html tags and javascript code

Author(s)

George Moroz <agricolamz@gmail.com>

Examples


check_hint("You can use argument `echo=FALSE`!")


agricolamz/checkdown documentation built on Oct. 27, 2023, 4:02 p.m.