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) }
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.