Peng Yu
2009-Aug-06 14:35 UTC
[R] How to execute a R script but outputting the result to the screen?
Hi, If I run the below command, it will generate a file 'file.Rout' to save the output. But I want the output be shown in the screen directly. I'm wondering if there is a direct way to do so. R CMD BATCH file.R Regards, Peng
Erik Iverson
2009-Aug-06 14:45 UTC
[R] How to execute a R script but outputting the result to the screen?
You did not specify your OS, but you might try at the shell prompt: Rscript file.R See ?Rscript -----Original Message----- From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] On Behalf Of Peng Yu Sent: Thursday, August 06, 2009 9:35 AM To: r-help at stat.math.ethz.ch Subject: [R] How to execute a R script but outputting the result to the screen? Hi, If I run the below command, it will generate a file 'file.Rout' to save the output. But I want the output be shown in the screen directly. I'm wondering if there is a direct way to do so. R CMD BATCH file.R Regards, Peng ______________________________________________ R-help at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Reasonably Related Threads
- How to pop up the graphics window from Rscript?
- How to wait for a user response in Rscript?
- How to not to terminate read.table if the input file is empty?
- How to get the current script file name in the script?
- How to convert a string passed as an argument to a vector?