invisible

0th

Percentile

Change the Print Mode to Invisible

Return a (temporarily) invisible copy of an object.

Keywords
programming
Usage
invisible(x)
Arguments
x

an arbitrary R object.

Details

This function can be useful when it is desired to have functions return values which can be assigned, but which do not print when they are not assigned.

This is a primitive function.

References

Becker, R. A., Chambers, J. M. and Wilks, A. R. (1988) The New S Language. Wadsworth & Brooks/Cole.

See Also

withVisible, return, function.

Aliases
  • invisible
Examples
library(base) # NOT RUN { # These functions both return their argument f1 <- function(x) x f2 <- function(x) invisible(x) f1(1) # prints f2(1) # does not # }
Documentation reproduced from package base, version 3.5.1, License: Part of R 3.5.1

Community examples

Looks like there are no examples yet.