problemblock: 'problemblock' object

Description Usage Arguments Details Value

Description

problemblock object

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
problemblock(problems, pretext = "", posttext = "", randomizable = FALSE)

## S3 method for class 'problemblock'
format(x, shuffle_problems = FALSE,
  shuffle_answers = FALSE, show_solutions = FALSE,
  tpl_problemblock = examiner_opts$tpl_problemblock,
  tpl_problem = examiner_opts$tpl_problem,
  tpl_answerlist = examiner_opts$tpl_answerlist,
  format_cnt_problem_1 = identity, cnt_problem_1 = 1L,
  counter = Counter(), .debug = FALSE, ...)

Arguments

problems

list of problems

pretext

character vector with text to go before the problems.

posttext

character vector with text to go after the problems.

randomizable

logical Whether the problems within the block can be shuffled.

x

The object

shuffle_problems

Shuffle problems?

shuffle_answers

Shuffle answers?

show_solutions

Display the solutions to the answers?

tpl_problemblock

Whisker template to use when rendering the object.

tpl_answerlist

The template to use to render the object.

tpl_problem

Whisker template to use when rendering the object.

format_cnt_problem_1

A function used to format

cnt_problem_1

Problem number. This will usually be set by format.problem.

counter

Counter object used for keeping track of the total number of problems in a problemset. Usually used internally by format.problem.

.debug

Useful for debugging. Shows the data that is passed to the template.

...

Used by the template and passed to format.problem for each problem.

Details

A "problemblock" object is a "list" with elements

problems

The problems. A "list" of "problem" objects.

pretext

The text to go before the problems.

posttext

The text to go after the problems.

Value

A problemblock object.


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