I’m porting an application written in R that currently runs under Windows over to Linux (Fedora 12) and am having some problems. Currently, under Windows I invoke R to run as a batch process as:
Rterm.exe –no-save –no-restore –quiet < myRprog.r > myRprog.log 2>&1
This little batch gem executes the program myRprog.r and outputs the processed statements and errors/warnings to myRprog.log and the the executed results into myRprog.lst.
I would like to recreate the same behavior under Linux. I’ve tried many different variations of the following without success.
R CMD BATCH myRprog.r myRprog.lst myRprog.log
Is there a way to emulate the behavior of writing two files out (log and listing) under Linux using batch?
Thanks.
Phil Rack
Try
there are dozens of other methods (which probably will soon appear), but this is most similar to your Windows use.