checkArgs: checkArgs

Description Usage Arguments Details Author(s)

View source: R/supplyArgs.R

Description

Takes a nonprimitive function with arguments, and returns a modified function that checks the types of each argument.

Usage

1
checkArgs(func, ...)

Arguments

func

Any non-primative function with arguments.

...

Name value pairs of arguments to func, and their associated type(ie "numeric") or type check function(ie is.numeric). Check args will use either.

Details

If multiple name value pairs in ... contain the same name, checkArgs will do two checks on that argument. However, this is not reccomended.

Author(s)

Sam Murray <slmurray@andrew.cmu.edu>


Sam-Murray/RecordLinkUtil documentation built on Oct. 30, 2019, 11:48 p.m.