[R] cannot print a list with cat
kry|ov@r00t @end|ng |rom gm@||@com
Mon Oct 24 14:47:52 CEST 2022
В Mon, 24 Oct 2022 20:39:33 +0800
"Steven T. Yen" <styen using ntu.edu.tw> пишет:
> Printing this in a main program causes no problem (as shown above).
> But, using the command t(mycontrol) the line gets ignored.
t() doesn't print, it returns a value. In R, there's auto-printing in
the toplevel context (see ?withAutoprint), but not when you move away
from the interactive prompt. I think that it should be possible to use
an explicit print(t(mycontrol)) to get the behaviour you desire.
More information about the R-help