[ top | up ]

Change the Print Mode to Invisible

Syntax

invisible(x)

Description

invisible makes its argument (temporarily) invisible. This can be useful whwn it is desired to have functions return values which can be assigned, but which do not print when they are not assigned.

Examples

# These functions both return their argument # The value returned by the second does not print f1 <- function(x) x f2 <- function(x) invisible(x)