View source: R/question_pool.R
question_pool | R Documentation |
Create a question with answers randomly taken from the pool of answers.
question_pool( title, ..., nr_answers = 5, random_answer_order = TRUE, container_class = NULL, mc = FALSE, post_rendered = NULL, title_container = h5, correct_label = 12, show_only_with_section = TRUE )
title |
question title. |
... |
answer options. |
nr_answers |
maximum number of answers to display. At least one correct answer will always be shown. |
random_answer_order |
should the order of answers be randomized? |
container_class |
additional HTML classes to add to the container. |
mc |
show as multiple choice. |
post_rendered |
optional function to post-process rendered text (e.g., to replace placeholders). The function is called with a single string marked as HTML and evaluated in the server context. |
correct_label |
if not |
show_only_with_section |
render the output only if the section is visible. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.