View source: R/write_answers.R
write_answers | R Documentation |
Take a tutorial session, extract out all the submitted answers, and write out an html file with all of those answers.
write_answers(file, session, is_test = FALSE)
file |
Location to render answers to. Output file type determined by file suffix. Only "html" is acceptable. |
session |
Session object from |
is_test |
|
We only keep track of the questions/exercises that the student has completed. The other obvious approach is to keep all the questions/exercises and leave unanswered ones as NA. Not sure if that approach is better, or even possible.
if(interactive()){
write_answers("getting-started_answers.html", sess)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.