R/exams: Duplicated images in PDF files

When using several R/exams exercises with TikZ plots, I have no problems generating exams in HTML format or for Canvas. However, exactly the same exercises when rendered to PDF show the same plots in different questions. As a simple example, you can use the same exercise twice, e.g., for the automaton exercise shipped with the package:

library("exams")
set.seed(0)
exams2pdf(c("automaton.Rnw", "automaton.Rnw"))

The automaton diagram in the exercise should have a double circle for "A" (the "accepting state" described in the text). However, it has the double circle for "B" (as in the first exercise).



Comments

Popular posts from this blog

I get wrong characters when retreiving the message body of an email using TIdIMAP4.UIDRetrieveTextPeek2()

How to drop the all the 1's in a correlation matrix

Today Walkin 14th-Sept