
invisible(x)
This is a primitive function.
withVisible
,
return
,
function
.
# These functions both return their argument
f1 <- function(x) x
f2 <- function(x) invisible(x)
f1(1) # prints
f2(1) # does not
Run the code above in your browser using DataLab