How do you print to stderr in R?
stderr
R
This would especially useful for scripts written in Rscript.
Rscript
Actually the following works for me:
write("prints to stderr", stderr()) write("prints to stdout", stdout())