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

> ### Name: rte.grade.exams
> ### Title: Grade exams built using rte.grade.exams
> ### Aliases: rte.grade.exams
> 
> ### ** 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
> list.build.rdn.exam <- 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,
+                                           do.randomize.questions=TRUE,
+                                           do.randomize.answers=TRUE,
+                                           do.clean.up = TRUE)

rte: Checking for error in inputs... Done
rte: pdflatex flavor: miktex
rte: Type of OS: Windows
rte: Latex compile function: texi2pdf
rte: Type of exam template: examdesign
rte: Number of mchoice questions: 4
rte: Building Test #1...Warning: running command '"D:\compiler\texmf\miktex\bin\texify.exe" --quiet --pdf "latexOut/MyRandomTest_1.tex" --max-iterations=20 -I "D:/RCompile/recent/R-3.3.2/share/texmf/tex/latex" -I "D:/RCompile/recent/R-3.3.2/share/texmf/bibtex/bst"' had status 1
Warning in file.copy(from = f.out.pdf, to = pdf.dir.out) :
  problem copying .\MyRandomTest_1.pdf to PdfOut\MyRandomTest_1.pdf: No such file or directory
Warning in file.remove(f.out.pdf) :
  cannot remove file 'MyRandomTest_1.pdf', reason 'No such file or directory'
Error in rte.compile.latex(f.temp.tex, pdf.dir.out = pdf.dir.out, latex.compile.fct = latex.compile.fct) : 
  Cant find compiled pdf file. You should check for sintax errors in the tex file and whether your OS has a flavor of latex installed.
Calls: rte.build.rdn.test -> rte.compile.latex
Execution halted