Running examples in ‘RndTexExams-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: rte.build.rdn.test
> ### Title: Build random tests from LaTeX file
> ### Aliases: rte.build.rdn.test
> 
> ### ** Examples
> 
> # define some options
> latex.dir.out = 'latexOut' # Name of folder where latex files are going (will create if not exists)
> pdf.dir.out = 'PdfOut'     # Name of folder where resulting pdf files are going
> f.out <- 'MyRandomTest_'   # Name of pdfs (MyRandomTest_1.pdf, MyRandomTest_2.pdf, ... )
> n.test <- 1                # Number of tests to build
> n.question <- 2            # Number of questions in each test
> 
> # Get latex example from package
> f.in <- system.file("extdata", "MyRandomTest_examdesign.tex", package = "RndTexExams")
> 
> # Break latex file into a R list
> list.out <- rte.analyze.tex.file(f.in,
+                                  latex.dir.out = latex.dir.out,
+                                  pdf.dir.out = pdf.dir.out)

rte: Changing LaTeX file into dataframe... Done> 
> # Build pdfs
> result.out <- rte.build.rdn.test(list.in = list.out,
+                                  f.out = f.out,
+                                  n.test = n.test,
+                                  n.question = n.question,
+                                  latex.dir.out = latex.dir.out,
+                                  pdf.dir.out = pdf.dir.out)

rte: Checking for error in inputs... Done
rte: pdflatex flavor: texlive
rte: Type of OS: Linux
rte: Latex compile function: custom
rte: Type of exam template: examdesign
rte: Number of mchoice questions: 4
rte: Building Test #1...This is pdfTeX, Version 3.14159265-2.6-1.40.19 (TeX Live 2018/Debian) (preloaded format=pdflatex)
 restricted \write18 enabled.
entering extended mode
Done
rte: FINISHED - Check folder PdfOut for pdf filesError in `[.data.table`(dat, , eval(fun.call), by = c(varnames)) : 
  SETLENGTH() cannot be applied to an ALTVEC object.
Calls: rte.build.rdn.test ... <Anonymous> -> dcast.data.table -> [ -> [.data.table
Execution halted