Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

R Batch Mode - Suppress output file

Tags:

r

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

/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 name of the script and the "out" suffix (sess_dur.Rout).

There is some way to tell R not to generate these files?

like image 661
Barata Avatar asked Apr 28 '11 21:04

Barata


People also ask

What is rout file in R?

'routr' is a package implementing a simple but powerful routing functionality for R based servers. It is a fully functional 'fiery' plugin, but can also be used with other 'httpuv' based servers. License MIT + file LICENSE.

What does R do in batch?

/r - iterate through the folder and all subfolders, i.e. recursively. The above command simply lists all files in the current folder and all subfolders.


1 Answers

Have you tried something like:

R CMD BATCH --vanilla --no-timing ~/scripts/R/sess_dur.R /dev/null
like image 98
IRTFM Avatar answered Sep 21 '22 17:09

IRTFM