Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

print vs. echo in R

I'm running a batch process using Rscript. I would like to print messages to screen just like "echo" does in bash. So I use the function "print".

The problem is that print's output does not go to the screen. It goes to the log file instead. Anybody knows what's the equivalent of echo in R?

like image 533
Wilmer E. Henao Avatar asked Apr 16 '14 17:04

Wilmer E. Henao


1 Answers

As Thomas pointed out on the comments...

message ("Print this on the screen")

For more info you can check the message documentation

like image 159
Custodio Avatar answered Oct 02 '22 17:10

Custodio