Skip to contents

Assert Argument is a Parameter of a Function

Usage

assert_function_param(arg, params)

Arguments

arg

The name of a function passed as a string

params

A character vector of function parameters

Value

The function throws an error if any elements of params is not an argument of the function given by arg