rt_stopif: Like 'stopifnot', but stop 'stopifnot' stops if the...

rt_stopifR Documentation

Like 'stopifnot', but stop 'stopifnot' stops if the expression is not true, and 'rt_stopif' stops if the expression is true. Avoids the unintuitive double-negative e.g. ('stopifnot(!espression)') which becomes 'rt_stopif(espression)'.

Description

Like 'stopifnot', but stop 'stopifnot' stops if the expression is not true, and 'rt_stopif' stops if the expression is true. Avoids the unintuitive double-negative e.g. ('stopifnot(!espression)') which becomes 'rt_stopif(espression)'.

Usage

rt_stopif(exprs)

Arguments

exprs

the expression


shane-kercheval/rtools documentation built on July 7, 2022, 8:31 a.m.