Just learning R and I thought it would be great to use it in batch mode in the unix terminal instead of writing in the R terminal.
So I decided to write test.r
x <- 2
print(x)
then in terminal I did
R CMD BATCH test.r
it runs, But outputs a test.r.Rout file. I can get it to output to say a text file by running R CMD BATCH test.r out.txt.
Question is, is it possible to print the output to the terminal?