문제

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?

도움이 되었습니까?

해결책

As Thomas pointed out on the comments...

message ("Print this on the screen")

For more info you can check the message documentation

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top