Last data update: 2014.03.03

R: Expect function contain code
expect_function_codeR Documentation

Expect function contain code

Description

Test that a given code code exists in function

Usage

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

Arguments

object

Function to check for mandatory code

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