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:
[
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.
Please read the fine manuals and discover cat()
, sprintf()
, ... and much much more.
writeLine is another option
writeLines('Hello World')