View source: R/preview-tools.R
preview_app | R Documentation |
Launch a viewer to preview the structure of the questions in a quiz.
preview_app(quiz, launch_browser = TRUE)
quiz |
an object of class 'quiz' to preview |
launch_browser |
launch in a web browser? |
Called for side effect
preview_app()
: Preview a quiz with full operability
Joseph Marlo
quiz <- create_quiz(
create_question(
'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Select nulla.',
add_choice('auctor'),
add_choice('nulla', correct = TRUE)
),
create_question(
'Mauris congue aliquet dui, ut dapibus lorem porttitor sed. Select 600.',
add_choice('600', correct = TRUE),
add_choice('800')
)
)
preview_app(quiz)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.