nay: Negate the falsyness of a value.

Description Usage Arguments Value Examples

Description

Negate the falsyness of a value.

Usage

1
nay(rhs)

Arguments

rhs

Value. If it is truthy, a falsy value (FALSY) is returned, otherwise a truthy value (TRUTHY) is returned.

Value

Logical scalar.

Examples

1
2
3
4
5
6
7
8
9
nay(FALSY)
nay(TRUTHY)

## Check if directory is empty
tmp <- tempdir()
nay(dir(tmp, all.files = TRUE, no.. = TRUE)) %||% message("Not empty")

cat("Hello!", file = tempfile())
nay(dir(tmp, all.files = TRUE, no.. = TRUE)) %||% message("Not empty")

gaborcsardi/falsy documentation built on May 16, 2019, 4:09 p.m.