i've got issues in the creating of an exam with the r-exams-package. It shows this error message:
In driver$read(file_tex[idj]) : length of exsolution and solutionlist does not match
When i generate a exam with the function exams2html-function it shows me on the issued questions this:
or this:
Here is the syntax of "issue type 1", for the issued-questions showed above:
mc1_df <- data.frame(
questions =
c(
"Der Median und der Modus sind Maße der zentralen Tendenz, die auch für nominalskalierte Variablen verwendet werden können.",
"Der Median ist gleich der zweiten Quartilsgrenze.",
"Das arithmetische Mittel ist weniger anfällig für Ausreißer in den Daten als der Median.",
"Für nominalskalierte Variablen lässt sich der Median nicht eindeutig berechnen.",
"Für nominalskalierte Variablen lässt sich der Modalwert nicht eindeutig berechnen."
)
,
solutions = c(F,T,F,T,F))
The data.frame thats created with the syntax above is looking allright.
Im displaying it with the following syntax:
Question
========
Welche der folgenden Aussagen sind korrekt?
{r mc1 qlist, echo = FALSE, results = "asis"}
answerlist(mc1_df$questions, markup = "markdown")
Solution
========
{r mc1 slist, echo = FALSE, results = "asis"}
answerlist(mc1_df$solutions, markup = "markdown")
When i execute this chunks in a .RMD the answer- and solutionlist is showing properly, hence without any NA.
I use following meta-information:
Meta-information
================
exname: mc1
extype: mchoice
exsolution: `r mchoice2string(mc1_df$solutions)`
exshuffle: TRUE
Is there any way to avoid this issue?
p.s. I want to create a exam into moodlecloud. The html-version is only to check the syntax and the need for further questions.
best regards,
JSP