assert: Create assertions with custom error messages.

Description Usage Arguments Examples

View source: R/helper_functions.R

Description

Create assertions with custom error messages.

Usage

1

Arguments

condition

A condition statement that returns a logical value.

message

A string. A custom error message to return. This is optional.

Examples

1
2
var <- 2
assert(is.numeric(var), "This variable is not a numeric!")

dmolitor/umbrella documentation built on Nov. 10, 2020, 1:25 a.m.