inst/examples/example_question_rank.R

if (require(learnr, quietly = TRUE)) {
  # to be used within a learnr tutorial...
  question_rank(
    "Sort the first 5 letters",
    answer(letters[1:5], correct = TRUE),
    allow_retry = TRUE,
    options = sortable_options(animation = 150)
  )
}

Try the sortable package in your browser

Any scripts or data that you put into this service are public.

sortable documentation built on March 31, 2023, 9:35 p.m.