answerlist: 'answerlist' objects

Description Usage Arguments Details Value

Description

answerlist objects

Usage

1
2
3
4
5
6
answerlist(x)

## S3 method for class 'answerlist'
format(x, show_solutions = FALSE,
  tpl_answerlist = examiner_opts$tpl_answerlist, format_i = identity,
  .debug = FALSE, ...)

Arguments

x

A data frame with colums: text, correct, and fixed. In format, the object.

show_solutions

Whether to the show the solution

tpl_answerlist

The template to use to render the object.

format_i

A function used to format the answer number.

.debug

Show the data used in the template.

...

Passed to the template.

Details

The class "answerlist" is a "data.frame" with columns:

text character Answer text
corect logical Is the answer correct?
fixed logical Can the answer be shuffled

Value

An object of class answerlist.


jrnold/examiner documentation built on May 20, 2019, 1 a.m.