In order to include statistical tables when using R-exams, I know that one can just use the option pages
inside the function exams2nops()
. But when using exams2moodle()
how should one proceed?
In Moodle one can upload a file within a question and add a link to the embedded file. Is it possible to do it through R exams?
You can easily include various kinds of supplementary files in R/exams and then export them to Moodle or other learning management systems. Two steps need to be taken:
include_supplement()
simplifies this.[myfile.pdf](myfile.pdf)
and in .Rnw exercises \url{myfile.pdf}
.An example for such an inclusion is the lm
exercise template shipped along with the package, see: http://www.R-exams.org/templates/lm/. This exercise creates a .csv file on the fly within R and then includes it.
An example for the include_supplement()
function is available in the Rlogo
exercise template that copies the R logo image from the R system and then includes it in the exercise. See: http://www.R-exams.org/templates/Rlogo/.
Final comment: For a distribution table it would also be possible to include this directly as an HTML table in Moodle. For example, you could generate suitable Markdown or LaTeX code within the R code of the exercise.