check_args: Check R expression(s)

Description Usage Arguments Examples

View source: R/FUN.R

Description

Reject an invalid error (custom class error) if any R expression is false

Usage

1
check_args(exprs, msgs)

Arguments

exprs

vector of boolean(s) or vector of R expression(s) which return boolean

msgs

vector of string, message(s) to print to the console

Examples

1
2
3
## Not run: check_arg(c(is.numeric("a"), is.numeric(1)), 
     c("\"a\" is not a numeric", "1 is not numeric"))
## End(Not run)

shutinet/metabSeek documentation built on Sept. 5, 2020, 12:57 a.m.