quiz(
question("Which package contains functions for installing other R packages?",
answer("base"),
answer("tools"),
answer("utils", correct = TRUE),
answer("codetools")
),
question("Which of the R packages listed below are used to create plots?",
answer("lattice", correct = TRUE),
answer("tools"),
answer("stats"),
answer("grid", correct = TRUE)
)
)
When I run the R chunk or Run the whole document
i get in the console
Quiz: "Quiz"
Question: "Which package contains functions for installing other R packages?"
type: "learnr_radio"
allow_retry: FALSE
random_answer_order: FALSE
answers:
X: "base"
X: "tools"
: "utils"
X: "codetools"
messages:
correct: "Correct!"
incorrect: "Incorrect"
Question: "Which of the R packages listed below are used to create plots?"
type: "learnr_checkbox"
allow_retry: FALSE
random_answer_order: FALSE
answers:
: "lattice"
X: "tools"
X: "stats"
: "grid"
messages:
correct: "Correct!"
incorrect: "Incorrect"
Thanks