knitr::opts_chunk$set(echo = TRUE)
knitr::opts_chunk$set(fig.pos = "H", out.extra = "")
cat("<style>.figcaption{text-align:center;}</style>")

Date:_ Last name, first name:_______

Example of an exam template to be used with the rexer package. In this section we can provide indications about the development of the exam.

If defined, the variable params$examinee will contain the student's name. If not defined, it will contain the number of the generated exam instance (it will match the file name). This is its current value: r params$examinee

This template presents the exercises one by one. The package only includes the statement of each exercise in the params$exercises vector variable. To present them, we have to loop through it or include them one by one to adapt their presentation, possibly including more indications.

Number of exercises: r length(params$exercises)


for (i in seq_along(params$exercises)) {
  q <- paste0('**1.** ', params$exercises[i])
  cat(q)
}


Try the rexer package in your browser

Any scripts or data that you put into this service are public.

rexer documentation built on May 29, 2024, 2:23 a.m.