I created a learnr tutorial in my desktop.
Tried to copy/paste in my RStudio Cloud .
Quiz does't show, simply blank line.
Am I missing something.
Thanks for help
U
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
When I run this quiz in RStudio cloud , bring blank line. Whereas the code runs in my desktop . Am i missing somewhere . This is my first project in RStudio .
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)
)
)
Any help would be appreciated .
Thanks
I could figure it out . Thanks
This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.