Description Usage Arguments Details Value
problemblock
object
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, ...)
|
problems |
list of problems |
pretext |
|
posttext |
|
randomizable |
|
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 |
counter |
Counter object used for keeping track of the total number of problems in a problemset.
Usually used internally by |
.debug |
Useful for debugging. Shows the data that is passed to the template. |
... |
Used by the template and passed to |
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.
A problemblock
object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.