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())
1.4m articles
1.4m replys
5 comments
57.0k users