<p><div><div><div><div data-show-faces="false" data-height="21" data-width="100" data-layout="button_count" data-send="true" data-href="https://www.r-bloggers.com/cran-release-of-r-exams-2-3-2/"></div></div><div></div></div><div></div></div>
<div>
(This article was first published on <strong><a href="http://www.r-exams.org/general/cran_release_232/"> R/exams</a></strong>, and kindly contributed to <a rel="nofollow" href="https://www.r-bloggers.com/">R-bloggers)</a> </div>
<p>New minor release of the R/exams package to CRAN, containing a range of smaller improvements and bug fixes. Notably scanning of written NOPS exams is enhanced and made more reliable and a new exercise template demonstrates how to use advanced processing of numeric answers in Moodle.</p>
<p><img alt="CRAN Release of R/exams 2.3-2" src="https://i2.wp.com/www.r-exams.org/images/cran232.title.png?w=456" data-recalc-dims="1"></p>
<p>Version 2.3-2 of the one-for-all exams generator <a rel="nofollow" href="http://www.r-exams.org/" target="_blank">R/exams</a> has been published on the Comprehensive R Archive Network at <a rel="nofollow" href="https://cran.r-project.org/package=exams" target="_blank">https://CRAN.R-project.org/package=exams</a>. In the next days this will propagate to other CRAN mirrors along with Windows and OS X binary packages. The development version of the package is now version 2.3-3 on R-Forge at <a rel="nofollow" href="http://r-forge.r-project.org/forum/?group_id=1337" target="_blank">http://R-Forge.R-project.org/forum/?group_id=1337</a>.</p>
<h2>Written exams (NOPS)</h2>
<ul>
<li>Support for further languages is available in <code>exams2nops()</code> and <code>nops_eval()</code>: Russian (<code>ru</code>, contributed by <a rel="nofollow" href="https://www.hse.ru/en/staff/bbd/" target="_blank">Boris Demeshev</a>) and Serbian (<code>sr</code>, contributed by <a rel="nofollow" href="https://tanjakec.github.io/" target="_blank">Tatjana Kecojevic</a>). Furthermore, Croatian (<code>hr</code>) was streamlined along with Serbian by Tatjana Kecojevic.</li>
<li>In <code>exams2nops()</code> the <code>header</code> argument can also be specified simply as <code>header = &quot;\\mycommand{value}&quot;</code> rather than <code>header = list(mycommand = &quot;value&quot;)</code>. The former is more flexible, e.g., for passing additional options or more complex commands. Internally, the former is turned into an unnamed list which is then processed correspondingly by <code>exams2pdf()</code>.</li>
<li>Scanning of written NOPS exams is enhanced and registration IDs are processed more reliably: First, <code>nops_scan()</code> gained a new argument <code>trim = 0.3</code> that controls how much of the check boxes is trimmed in order to shave the borders prior to determining the average gray level. In versions up to 2.3-1 this implicitly had a value of <code>0.25</code> hard-coded. Now the default increased to <code>0.3</code> in order to shave box borders more reliably, e.g., in more pixelated scans. Second, <code>nops_scan()</code> tries to process registration numbers more reliably. In case one of the registration columns contains more than one potential mark, the heuristics of determining the intended mark have been improved.</li>
<li><code>nops_eval()</code> gained a new argument <code>labels = NULL</code> that can be used to give labels for the marks that differ from the default <code>(length(mark) + 1):1</code>.</li>
</ul>
<h2>New exercise templates</h2>
<ul>
<li>The new exercise <a rel="nofollow" href="http://www.r-exams.org/templates/confint3/" target="_blank">confint3</a> (Rmd/Rnw) illustrates how to use the <code>verbatim</code> type for advanced processing in Moodle when asking for the computation of a 2-sided confidence interval. Rather than using a single correct value for each numeric result (along with a corresponding tolerance interval) as in <code>num</code> exercises (see <a rel="nofollow" href="http://www.r-exams.org/templates/confint2/" target="_blank">confint2</a>), the exercise also provides a second partially correct value for each result. More precisely, the exercise yields 100% of the points for the correct solution based on t quantiles but still 50% for the solution based on normal quantiles. This is possible by setting the type to <code>verbatim</code> and specifying the solution via the necessary Moodle XML markup directly, e.g., <code>:NUMERICAL:=</code></ul>