olat_exercise {exams2openolat} | R Documentation |
Extract (and display) selected exercises from OpenOlat exams
produced with exams2openolat
in order
to see both question and solution.
olat_exercise(x, ..., fixed = TRUE, show = TRUE, mathjax = TRUE)
x |
character or list. Either an OpenOlat exam list as produced
by |
... |
character. Either a single numeric index of the exam to be selected.
Or, alternatively, patterns to be searched for in the question text
of the exams in |
fixed |
logical. Should the search pattern(s) be matched as is? |
show |
logical. Should the exercise(s) found be shown in the browser? |
mathjax |
logical. Should the JavaScript from https://www.MathJax.org/ be included for rendering mathematical formulas? |
olat_exercise
is a companion function for exams2openolat
.
As OpenOlat has no option to look at the precise question of a particular
student – and more importantly the corresponding solution – one strategy
is to search for particular words, numbers, or other strings in the
database of all questions from an OpenOlat exam.
olat_exercise
goes through all questions in the exam and selects
those question(s) that match(es) the given search patterns. By default
the question(s)/solution(s) are displayed in the browser and returned
invisibly.
A list
containing either a single exercise or a list of such
exercises (in case the search patterns do not yield a unique question).