Re: [R] print() required sometimes in interactive use of console

2011-01-26 Thread Duncan Murdoch
On 26/01/2011 3:27 PM, Giles Crane wrote: Surprising behavior: Most R users are aware that print() must be used inside functions to gain output on the console. Apparently, print() is sometimes required when interactively using the console. For example, the followingmay be entered into the R cons

[R] print() required sometimes in interactive use of console

2011-01-26 Thread Giles Crane
Surprising behavior: Most R users are aware that print() must be used inside functions to gain output on the console. Apparently, print() is sometimes required when interactively using the console. For example, the followingmay be entered into the R console with different results. sample(1:8,8)