I tried to run the example file "learnr_questions.Rmd" that comes as an example in exams2learnr package. The chunk:
exams2learnr("swisscapital.Rmd", allow_retry = TRUE, incorrect = "Incorrect, try again.")
generates "Invalid 'definition' argument" error. What am I doing wrong?
TL;DR: Please install at least version 2.4-0 of the
examspackage.Notes: This error seems to happen when using a recent version of
learnrwith the version 2.3-6 ofexams(which was the CRAN release when the question was asked). As this wasn't a problem in older versions oflearnr, theexams2learnrpackage claimed in its DESCRIPTION file thatexams>= 2.3-6 was sufficient but this is not true anymore with more recent versions oflearnr. Hence, I have just updated the DESCRIPTION ofexams2learnrto correctly requireexams>= 2.4-0.