search for: funvisible

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

Did you mean: unvisible
2011 Sep 19
1
Invisible doesn't exit function?
...e 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') cat(1 / 0) } funVisible() [[alternative HTML version deleted]]