Usage
exams2nops(file, n = 1L, dir = NULL, name = NULL, language = "en", title = "Exam", course = "", institution = "R University", logo = "Rlogo.png", date = Sys.Date(), replacement = FALSE, intro = NULL, blank = NULL, duplex = TRUE, pages = NULL, usepackage = NULL, header = NULL, encoding = "", startid = 1L, points = NULL, showpoints = FALSE, ...)
make_nops_template(n, replacement = FALSE, intro = NULL, blank = NULL, duplex = TRUE, pages = NULL, file = NULL, nchoice = 5, encoding = "")
Arguments
file
character. A specification of a (list of) exercise files.
n
integer. The number of copies to be compiled from file
(in exams2nops
) and the number of exercises per exam
(in make_nops_template
), respectively.
dir
character. The default is either display on the screen or
the current working directory.
name
character. A name prefix for resulting exams and RDS file.
language
character. Path to a DCF file with a language specification.
Currently, the package ships: English ("en"
), Dutch ("nl"
),
French ("fr"
), German ("de"
), Italian ("it"
),
Romanian ("ro"
), Portuguese ("pt"
), Spanish ("es"
).
title
character. Title of the exam, e.g., "Introduction to Statistics"
.
course
character. Optional course number, e.g., "101"
.
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 "Date"
object specifying the date of the exam.
replacement
logical. Should a replacement exam sheet be included?
intro
character with LaTeX code for optional introduction text on the first page
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 (e.g., formulary or distribution tables).
usepackage
character. Names of additional LaTeX packages to be
included.
header
list. A list of further options to be passed to
the LaTeX files.
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 expoints
tags
of the exercise files (if any). The vector of points supplied should either have
length 1 or the number of exercises in the exam.
showpoints
logical. Should the PDF show the number of points associated with
each exercise (if specified in the Rnw/Rmd exercise or in points
)?
nchoice
character. The number of choice alternatives per exercise.