check.call: Checks whether the user makes a particular function call in...

Description Usage Arguments

Description

Checks whether the user makes a particular function call in his code or call a particular R statement

Usage

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), ...)

Arguments

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.


skranz/armd documentation built on Sept. 4, 2020, 12:22 p.m.