learnrhash icon indicating copy to clipboard operation
learnrhash copied to clipboard

Feature request: extract_questions should have a 'correct' column

Open debbieyuster opened this issue 4 years ago • 1 comments

The extract_exercises function includes a boolean/logical column showing the correctness of the submitted answer (code), while the extract_questions function does not - it reports back the student's submitted answers. It would be great if the answer correctness appeared as well, so that tabulating scores could be simplified.

debbieyuster avatar Sep 11 '20 02:09 debbieyuster

You can use other package (such as gradethis) to check if the answer is correct. There is a demo learnr tutorial in this package. Below are the decoded results (and see the 2nd row "code2" with a TRUE):

# A tibble: 5 x 5
  label         type     answer    correct timestamp                  
  <chr>         <chr>    <list>    <lgl>   <chr>                      
1 code          exercise <chr [1]> NA      2021-10-21 11:10:44.423 UTC
2 code2         exercise <chr [1]> TRUE    2021-10-21 11:11:02.396 UTC
3 details       question <chr [1]> FALSE   2021-10-21 11:10:44.404 UTC
4 not_a_planets question <chr [3]> TRUE    2021-10-21 11:10:44.410 UTC
5 planets       question <chr [1]> TRUE    2021-10-21 11:10:44.407 UTC

yyzeng avatar Oct 21 '21 11:10 yyzeng