R Batch Mode - Suppress Output File

I have some scripts that I run using batch mode R.

/usr/bin/R CMD BATCH --vanilla --no-timing ~/scripts/R/sess_dur.R 

I redirect the output to a file using:

 > sink("~/scripts_output/R_output.txt",append=TRUE) 

The problem is that when I run this script, files are created with the same script suffix name and "out" ( sess_dur.Rout ).

Is there any way to tell R not to generate these files?

+7
source share
1 answer

Have you tried something like:

 R CMD BATCH --vanilla --no-timing ~/scripts/R/sess_dur.R /dev/null 
+10
source

All Articles