search for: funinvisible

Displaying 1 result from an estimated 1 matches for "funinvisible".

2011 Sep 19
1
Invisible doesn't exit function?
I thought that invisible works like return() However, it appears that it doesn't exit a function. Is it supposed to work this way? funInvisible = function(){ invisible(10) cat('I was not expecting this to print\n') cat('because it occurs after the invisible return\n') } funInvisible() funVisible = function(){ cat('start of function\n') return(10) cat('This error is safely avoided: \n...