Description Usage Arguments Details Value Author(s) Examples
Automatic generation of exercise sheets and exams in PDF format,
inspired by the exams
package.
1 2 3 |
sheets |
[
Additional entries are available during brewing of the
|
poolDir |
[ |
templates |
[ |
outDir |
[ |
names |
[ |
n |
[ |
compiler |
[
|
clean |
[ |
... |
Any further arguments passed to the environment of
|
Examples of templates are installed in
systemfile("templates", package = "imbs)}. Examples of exercises and
solutions are installed in \code{systemfile("templates", package = "imbs)
.
Invisible character
with path of generated PDF files.
Damian Gola, gola@imbs.uni-luebeck.de
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | ## Not run:
if(require(ggplot2)) {
sheets <- list(w1 = list(exercises = list("sum1", "sum2"),
nsamp = c(1, 1),
date = "yyyy-mm-dd"),
w2 = list(exercises = list(c("boxplot1", "regression1")),
nsamp = 1,
date = "yyyy-mm-dd"))
ex2pdf(sheets = sheets,
poolDir = system.file("pool", package = "imbs"),
templates = c(system.file("templates/exercise.brew", package = "imbs"),
system.file("templates/solution.brew", package = "imbs")),
outDir = file.path(getwd(), "ex2pdfTest"),
names = c("Exercise", "Solution"),
n = 2,
compiler = list(command = "pdflatex",
args = c("-interaction=batchmode")),
year = 2016,
email = "mail@example.net")
}
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.