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 and testing for cheating are also available.


  • 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
  • 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
  • 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)
  • Now using tools::texi2pdf() instead of custom call to pdflatex
  • More input checks
  • Added code for grading tests
  • Improved vignette text
  • Fixed function for latex compilation by checking latex flavor and type of OS
  • 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

Reference manual

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


1.4.1 by Marcelo Perlin, 6 days ago

Browse source code at

Authors: Marcelo Perlin [aut, cre]

Documentation:   PDF Manual  

GPL-2 license

Imports tools, stringr, stringi, data.table

Depends on CopyDetect

Suggests knitr, rmarkdown, testthat, ggplot2, irtoys

See at CRAN