CRAN Release of R/exams 2.3-1
Version 2.3-1 of the one-for-all exams generator R/exams has been published on the Comprehensive R Archive Network at https://CRAN.R-project.org/package=exams. In the next days this will propagate to other CRAN mirrors along with Windows binary packages. The development version of the package is now version 2.3-2 on http://R-Forge.R-project.org/forum/?group_id=1337.
New features
- Added new interface
exams2openolat()
for the open-source OpenOlat learning management system. This is only a convenience wrapper toexams2qti12()
orexams2qti21()
with some dedicated tweaks for optimizing MathJax output for OpenOlat. - New function
include_tikz()
that facilitates compiling standalone TikZ figures into a range of output formats, especially PNG and SVG (for HTML-based output). This is useful when including TikZ in R/Markdown exercises or when converting R/LaTeX exercises to HTML. Two examples have been added to the package that illustrate the capabilities ofinclude_tikz()
: automaton, logic. A dedicated blog post is also planned.
Written exams (NOPS)
- Following the blog post on Written R/exams around the World several users have been kind enough to add language support for: Croatian (hr.dcf, contributed by Krunoslav Juraić), Danish (da.dcf, contributed by Tue Vissing Jensen and Jakob Messner),Slovak (sk.dcf, contributed by Peter Fabsic), Swiss German (gsw.dcf, contributed by Reto Stauffer), Turkish (tr.dcf, contributed by Emrah Er). Furthermore, Portuguese has been distinguished into pt-PT.dcf (Portuguese Portuguese) vs. pt-BR.dcf (Brazilian Portuguese) with pt.dcf defaulting to the former (contributed by Thomas Dellinger).
- After setting a random seed
exams2nops()
andexams2pdf()
now yield the same random versions of the exercises. Previously, this was not the case becauseexams2nops()
internally generates a single random trial exam first for a couple of sanity checks. Now, the.GlobalEnv$.Random.seed
is restored after generating the trial exam. - Fixed the support for
nsamp
argument inexams2nops()
. Furthermore, current limitations ofexams2nops()
are pointed out more clearly in error messages and edge cases caught. - Allow varying points within a certain exercise in
nops_eval()
.
HTML output and Base64-encoded supplements
- In
exams2html()
and other interfaces based onmake_exercise_transform_html()
the optionbase64 = TRUE
now uses Base64 encoding for all file extensions (known to the package) whereasbase64 = NULL
only encodes image files (previous default behavior). - Bug fixes and improvements in HTML transformers:
- Only
="file.ext"
(with="
) for supplementary files embedded into HTML is replaced now by the corresponding Base64-encoded version. href="file.ext"
is replaced byhref="file.ext" download="file.ext"
prior to Base 64 replacement to assure that the file name is preserved for the browser/downloader.alt="file.ext"
anddownload="file.ext"
are preserved without the Base64-encoded version offile.ext
.
- Only
- Include further file URIs for Base64 supplements, in particular .sav for SPSS data files.
- In
exams2blackboard(..., base64 = FALSE, ...)
thebase64 = FALSE
was erroneously ignored. No matter how base64 was specified essentiallybase64 = TRUE
was used, it is honored again now.
Extensions
\exshuffle{<num>}
can now also be used for schoice exercises with more than oneTRUE
answer. In a first step only one of theTRUE
answers is selected and then<num>-1
items from theFALSE
answers.- Function
include_supplement(..., dir = "foo")
- without full path to"foo"
- now also works if"foo"
is not a local sub-directory but a sub-directory to the exercise directoryedir
(if specified). - Enable passing of
envir
argument fromexams2html()
toxweave()
in case of R/Markdown (.Rmd) exercises. - When using
exams2html(..., mathjax = TRUE)
for testing purposes, mathjax.rstudio.com is used now rather than cdn.mathjax.org which is currently redirecting and will eventually be shut down completely. - Added support for
\tightlist
(as produced by pandoc) in all current LaTeX templates as well asexams2nops()
.
Bug fixes
- Fixed a bug in
stresstest_exercise()
where the “rank” (previously called “order”) of the correct solution was computed incorrectly. Additional enhancements in plots and labels. - Fixed a bug for
tex2image(..., tikz = TRUE)
where erroneously\usetikzlibrary{TRUE}
was included. Alsotex2image(..., Sweave = TRUE)
(the default) did not run properly on Windows, fixed now. - Better warnings if
\exshuffle{<num>}
could not be honored due to a lack of sufficiently many (suitable) answer alternatives. - Bug fix in CSV export of
exams2arsnova()
. Recent ARSnova versions use “mc” (rather than “MC”) and “abcd” (rather than “SC”) to code multiple-choice and single-choice questions, respectively.