Learn R Programming

restorepoint (version 0.2)

assert: Checks whether cond holds true if not throws an error

Description

Can be used for checking for errors in functions

Usage

assert(cond)

Arguments

cond

a condition that is checked