problem | R Documentation |
Useful for constructing a small list to communicate the problem that was discovered during checking.
problem( type, expected, actual, ..., .class = c(paste0(type, "_problem"), "tblcheck_problem") )
type |
A character string, e.g. |
expected, actual |
The expected and actual values. These should be
included when the value is a summary, e.g. |
... |
Additional elements to be included in the |
.class |
The class of the problem. Typically, we expect the problem
class to be |
Returns a problem with class <type>_problem
and the base classes
tblcheck_problem
and gradethis_problem
.
Other Problem functions:
problem_grade()
,
problem_message()
,
problem_type()
problem( type = "class", expected = "character", actual = "numeric", expected_length = 1, actual_length = 2 )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.