Learn R Programming

markmyassignment (version 0.4.0)

expect_function_arguments: Expect function arguments

Description

Test that an object with a given name exist in the environment.

Usage

expect_function_arguments(object, expected, info = NULL, label = NULL,
  expected.label = NULL)

Arguments

object
Function to check the arguments of.
expected
Expected arguments in function.
info
Extra information to be included in the message (useful when writing tests in loops).
label
For full form, label of expected object used in error messages. Useful to override default (deparsed expected expression) when doing tests in a loop. For short cut form, object label. When NULL, computed from deparsed object.
expected.label
Equivalent of label for shortcut form.