library(learnr)

Question

question(
  "Which planet do we live on?",
  answer("Mars",   correct = FALSE),
  answer("Earth",  correct = TRUE),
  answer("Saturn", correct = FALSE),
  allow_retry = TRUE
)

Submit

learnrhash::encoder_logic()

Note the following may not show in RStudio's viewer, try opening it in your browser to see the full iframe.

learnrhash::encoder_ui(
  ui_before = shiny::div(
    "If you have completed this tutorial and are happy with all of your",
    "solutions, please click the button below to generate your hash and",
    "submit it using the following form:",
    shiny::tags$br()
  ), 
  ui_after = learnrhash::iframe_ui(
    src = "https://docs.google.com/forms/d/e/1FAIpQLSdzre-kmqNje64ZCK7VsXHWKSVdGNOjSUwU1IZaCWs_vL_yuQ/viewform?embedded=true",
    width="640px", height= "800px", frameborder="0", marginheight="0", marginwidth="0"
  )
)


rundel/learnrhash documentation built on July 21, 2022, 11 p.m.