Build and Grade Multiple Choice Exams with Randomized Content

Using as input a 'LaTeX' file with a multiple choice exam, this package will produce several versions with randomized contents of the same exam. Functions for grading are also available.


Version 1.5 (2018-10-09)

  • Removed functions for testing for cheating due to broken dependency.

Version 1.4.1 (2018-01-13)

  • Found bug for tools::texi2pdf(). Seems to be an internal problem outside of RndTexExams, can't fix it: "mkdir: cannot create directory ‘Code/R’: No such file or directory". The default is now using 'custom' call to pdflatex.

Version 1.4 (2016-06-05)

  • Added new support for exam latex class. RndTexExam now works with examdesign and exam classes
  • The rte_analyze_tex_file is now procedural, making it easier to debug and include new latex classes in the future
  • Lots of new error checks in questions, making sure the latex file has all needed components

Version 1.3.1 (2016-05-16)

  • Added choice for omitting of cat() output in rte.test.cheating
  • Added Linux texlive requirements in vignette
  • Removed texlive-lang-portuguese dependency in example latex file

Version 1.3 (2016-05-03)

  • Now using either texi2pdf or custom call to pdflatex (custom call is slightly faster, somehow)
  • When using Solaris OS, the code will force custom call to pdflatex. This should fix error in CRAN CHECK for this platform (tex2pdf does not seems to work in Solaris OS)
  • Added code for testing pairwise hypothesis of cheating based on student's answer sheet. The code is now integrated with package CopyDetect
  • Added a new vignette (Testing for visual cheating with RndTexExams)

Version 1.2 (2016-04-22)

  • Now using tools::texi2pdf() instead of custom call to pdflatex
  • More input checks
  • Added code for grading tests
  • Improved vignette text

Version 1.1.1 (2016-02-19)

  • Fixed function for latex compilation by checking latex flavor and type of OS

Version 1.1.0 (2016-02-18)

  • Redefined pdflatex command (excluding sintex)
  • Fixed bugs in vignette and examples
  • Improved text of vignette
  • Fixed function for latex compilation by checking latex flavor and type of OS

Version 1.0.0 - Initial version (2016-02-01)

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.


1.5 by Marcelo Perlin, a year ago

Browse source code at

Authors: Marcelo Perlin [aut, cre]

Documentation:   PDF Manual  

Task views:

GPL-2 license

Imports tools, stringr, stringi, data.table

Suggests knitr, rmarkdown, testthat, ggplot2, irtoys

See at CRAN