In R, I use the print function for output but I always get an ugly output. If I do print("hello world")
the output is [1] "hello world"
Is there a function/way to print output and just get the text I want ?
Thanks
In R, I use the print function for output but I always get an ugly output. If I do print("hello world")
the output is [1] "hello world"
Is there a function/way to print output and just get the text I want ?
Thanks
Please read the fine manuals and discover cat()
, sprintf()
, ... and much much more.
Simply cat
to print on stdout and message
to print on stderr. sprintf
(working exactly as in C) and paste
are helpful when generating the output.