View source: R/problem_grade.R
problem_grade | R Documentation |
Automatically converts a problem()
object into a gradethis grade.
problem_grade()
is an S4 generic and tblcheck provides an internal
method for problems with class "tblcheck_problem"
. In tblcheck, or
for problems with this class, any problems are automatically turned into
failing grades with gradethis::fail()
and using the message provided by
problem_message()
.
problem_grade(problem, max_diffs = 3, env = parent.frame(), ...) ## Default S3 method: problem_grade(problem, max_diffs = 3, env = parent.frame(), ...) ## S3 method for class 'list' problem_grade(problem, max_diffs = 3, env = parent.frame(), ...) ## S3 method for class 'gradethis_problem' problem_grade(problem, max_diffs = 3, env = parent.frame(), ...) ## S3 method for class 'tblcheck_problem' problem_grade(problem, max_diffs = 3, env = parent.frame(), ...)
problem |
A problem generated by |
max_diffs |
|
env |
The environment used for grading. |
... |
Arguments passed on to
|
A gradethis::fail()
message or NULL
invisibly.
Other Problem functions:
problem_message()
,
problem_type()
,
problem()
.result <- 1:10 .solution <- letters[1:10] problem <- vec_check() problem_grade(problem)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.