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.
cat
message
sprintf
paste