Checks whether the user makes a particular function call in his code or call a particular R statement
1 2 3 4 5 6 | check.call(call, check.arg.by.value = TRUE, allow.extra.arg = FALSE,
ignore.arg = NULL, success.message = NULL, failure.message = NULL,
no.command.failure.message = NULL, ok.if.same.val = FALSE,
s3.method = NULL, ps = get.ps(), stud.env = ps$stud.env,
part = ps$part, stud.expr.li = ps$stud.expr.li, verbose = FALSE,
noeval = isTRUE(ps$noeval), ...)
|
call |
the correct function call that shall be checked (not a quoted call) |
check.arg.by.value |
if TRUE (default) check whether students arguments have the same value than in given call, even if their unevaluted representation looks different |
allow.extra.arg |
if TRUE (not default) the student is allowed to supply additional arguments to the call that were not in the solution. Useful, e.g. if the student shall plot something and is allowed to customize her plot with additional arguments. |
ignore.arg |
a vector of argument names that will be ignored when checking correctness |
ok.if.same.val |
if TRUE (not default) the call will be considered as correct, if it yields the same resulting value as the solution, even if its arguments differ. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.