Forum: support


RE: inserting ID inside exams [ Reply ] By: Achim Zeileis on 2016-12-14 22:56 | [forum:43752] |
Francisco, you are right, this is poorly documented. We have an example that shows what needs to be done but this is somewhat hidden on page 10-11 of vignette("exams", package = "exams"). If you want the header information to contain the ID, you need to set this up via getID <- function(i) gsub(" ", "0", format(i, width = 5)) exams2pdf(..., template = c("exam", "solution"), header = list(ID = getID, Date = Sys.Date())) If you have only single-choice and multiple-choice answers, then also look at the exams2nops() function. This automatically takes care of the ID, offers automatic scanning and evaluation, and is also available in Spanish. |
inserting ID inside exams [ Reply ] By: Francisco Goerlich on 2016-12-14 15:13 | [forum:43749] |
Hi, When I use exams2pdf() the ID is always set to 1, but the names increase the index automathically. May I include this index in the pdf itself: ID001, ID002, ID003,... Otherwise, once the exams are distributed I don“t know which solution correspond to each exam. Many thanks in advance, |