The following function was modified from Colin Rundel's
learnrhash package, available at https://github.com/rundel/learnrhash. Note
that when including these functions in a learnr Rmd document it is
necessary that the server function, submission_server()
, be included in
an R chunk where context="server"
.
Examples
if(interactive()){
submission_server()
}
if(interactive()){
submision_ui
}