Skip to content
Prev 265462 / 398503 Next

Using str() in a function.

David --  Ah! Excellent. OK, that explains Dennis's function's output.
Print(str(X)) evaluates str(X), sending the usual str() output to the
console as a side effect, and then prints what str() returns, which is NULL. 
And invisible() prints NULL again, but we don't see NULL NULL, because the
second one is invisible. 

Still puzzled by the order of my output, though.
andrewH

--
View this message in context: http://r.789695.n4.nabble.com/Using-str-in-a-function-tp3655785p3666543.html
Sent from the R help mailing list archive at Nabble.com.