exams2nops {c403} | R Documentation |
Interfaces exams2nops
with different default
values as used at Uni Innsbruck.
exams2nops( file, n = 1L, dir = NULL, name = NULL, language = "de", title = "Klausur", course = "", institution = "Universit\\\"at Innsbruck", logo = "uibk-logo-bw.png", date = Sys.Date(), replacement = TRUE, intro = NULL, blank = NULL, duplex = TRUE, pages = NULL, usepackage = NULL, encoding = "", startid = 1L, points = NULL, showpoints = FALSE, reglength = 8L, ... )
file |
character. A specification of a (list of) exercise files. |
n |
integer. The number of copies to be compiled from |
dir |
character. The default is either display on the screen or the current working directory. |
name |
character. A name prefix for resulting exercises and RDS file. |
language |
character. Path to a DCF file with a language specification.
Currently, |
title |
character. Title of the exam, e.g., |
course |
character. Course number, e.g., |
institution |
character. Name of the institution at which the exam is conducted. |
logo |
character. Path to a logo image. If the logo is not found, it is simply omitted. |
date |
character or |
replacement |
logical. Should a replacement exam sheet be included? |
intro |
character with LaTeX code for introduction text at the beginning of the exam. |
blank |
integer. Number of blank pages to be added at the end. (Default is chosen to be half of the number of exercises.) |
duplex |
logical. Should blank pages be added after the title page (for duplex printing)? |
pages |
character. Path(s) to additional PDF pages to be included at the end of the exam. |
usepackage |
character. Names of additional LaTeX packages to be included. |
encoding |
character, passed to |
startid |
integer. Starting ID for the exam numbers (defaults to 1). |
points |
integer. How many points should be assigned to each exercise? Note that this
argument overules any exercise points that are provided within the |
showpoints |
logical. Should the PDF show the number of points associated with
each exercise (if specified in the Rnw/Rmd exercise or in |
reglength |
integer. Number of digits in the registration ID. The default is 8 and it can be increased up to 10. |
... |
arguments passed on to |
exams2nops
is a convenience interface for
exams2nops
with somewhat different defaults:
German titles/descriptions, Uni Innsbruck logo, replacement sheets enabled,
duplex printing enabled.
A list of exams as generated by xexams
is returned
invisibly.
nops_eval nops_register
## load package and enforce par(ask = FALSE) library("exams") options(device.ask.default = FALSE) ## define an exams (= list of exercises) myexam <- list( "boxplots", c("tstat", "ttest", "confint"), c("regression", "anova"), c("scatterplot", "boxhist"), "relfreq" ) if(interactive()) { ## compile a single random exam (displayed on screen) exams2nops(c("tstat2", "anova", "boxplots")) }