Description Usage Arguments Details
Calling show_answers(TRUE)
causes the etude document
to display answers. Answers can be marked in either of two
ways:
1 2 3 4 | show_answers(
flag = TRUE,
format = ifelse(knitr::is_latex_output(), "latex", "html")
)
|
flag |
logical. If |
format |
Whether the document is intended for translation to latex or to html. Determined automatically by default. |
a chunk with engine etude
an inline chunk calling ans(your_text)
When show_answers(TRUE)
has been called, the multiple choice questions
created by true_and_false()
or choose_one()
will, **if they are
being rendered as static HTML, will show the answers along with each multiple-choice
item. Note that if the document is compiled to learnr
, those static
answers won't be shown. Instead, it's the user's dynamic interaction
with the learnr
document that sets whether the user sees answers.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.