Learn R Programming

icecream (version 0.2.2)

ic: User-friendly debug statements

Description

User-friendly debug statements

Usage

ic(x)

Value

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

Arguments

x

An expression, or nothing

Examples

Run this code
f <- function(x) x < 0

ic(f(1))

ic(f(-1))

Run the code above in your browser using DataLab