Skip to contents

Call Print If Condition Is Met

Usage

printIf(condition, x, caption = deparse(substitute(x)))

Arguments

condition

if TRUE, print is called, else not

x

object to be printed

caption

optional. Caption line to be printed with cat before printing x