Skip to content
Prev 265625 / 398503 Next

Using str() in a function.

On 15/07/2011 1:44 PM, Bert Gunter wrote:
Right.  And what invisible() does is set a flag so that the console is 
told "don't print this".  You can see the flag if you use the 
withVisible() function.  For example, with Bert's definitions,

 > withVisible(f())
$value
NULL

$visible
[1] TRUE

 > withVisible(g())
$value
NULL

$visible
[1] FALSE

Duncan Murdoch