library(learnr) knitr::opts_chunk$set(echo = FALSE) knitr::opts_chunk$set(exercise.checker = gradethis::grade_learnr)
options(tutorial.event_recorder = learnr:::debug_event_recorder) learnrhash::encoder_logic()
question_text( "Student Name:", answer(NULL, correct = TRUE), incorrect = "Ok", try_again_button = "Modify your answer", allow_retry = TRUE )
question( "Which planet do we live on?", answer("Mars", correct = FALSE), answer("Earth", correct = TRUE), answer("Saturn", correct = FALSE), allow_retry = TRUE )
question( "Which of the following are planets?", answer("Mars", correct = TRUE), answer("Earth", correct = TRUE), answer("Saturn", correct = TRUE), answer("Pluto", correct = FALSE), allow_retry = TRUE )
1+1
1+1
gradethis::grade_result( gradethis::pass_if(~ TRUE, "Submitted!"), glue_correct = "{.message}" )
learnrhash::encoder_ui()
learnrhash::decoder_logic()
learnrhash::decoder_ui()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.