Closed MichaelChirico closed 2 years ago
In the latter, invisible() is a no-op because return executes first. Observe:
foo = function(x) invisible(return(x)) bar = function(x) return(invisible(x)) foo(5) # [1] 5 bar(5)
Thanks!
In the latter, invisible() is a no-op because return executes first. Observe: