Last data update: 2014.03.03

R: Expect function arguments
expect_function_argumentsR Documentation

Expect function arguments

Description

Test that an function object has a function with given arguments.

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.

Results