User-friendly debug statements

ic(x)

Arguments

x

An expression, or nothing

Value

If x is an expression, returns the result of evaluating x. If x is missing nothing is returned.

Examples

f <- function(x) x < 0

ic(f(1))
#> [1] FALSE

ic(f(-1))
#> [1] TRUE