I recently installed the R package exams
in order to generate some qti format quizzes for a course I am about to teach, but have been unable to import R markdown files.
I tried with the example file switzerland.Rmd available here: http://www.r-exams.org/templates/switzerland/
Here's the error I am getting when I try to run exams2qti21
:
> exams2qti21("../Downloads/switzerland.Rmd")
sh: 1: +RTS: not found
Error: pandoc document conversion failed with error 127
How can I fix this?
I am running R 3.4.4 on Ubuntu Xenial.
This error does not come from exams
itself but from the rmarkdown
package which is leveraged by exams
to call the pandoc
converter (for converting Markdown to HTML in this case). It appears that on your system pandoc
is either not installed at all, not in the search path, or not installed correctly.
If pandoc
is not installed at all, then you need to install it. On Ubuntu you can use the usual package managers to install it, e.g., sudo apt-get install pandoc
or via synaptic etc. If you use RStudio then this also ships with a pandoc
binary (at least on Windows) so that you don't need to install it yourself.
To check at which path pandoc
is installed (if it is), you can use rmarkdown::pandoc()
.