[R] Using str() in a function.

andrewH ahoerner at rprogress.org
Thu Jul 14 04:54:18 CEST 2011


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.



More information about the R-help mailing list