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())
2.1m questions
2.1m answers
60 comments
57.0k users