Skip to content
Prev 32286 / 398513 Next

R in BATCH mode

On Tue, 20 May 2003, vito muggeo wrote:

            
Ah, so you really are at a DOS prompt.  R is designed to be run in
Windows, and this works in all versions of Windows available to me (XP and
2000, and WinME is obselete).  The problem is your so-called `shell',
command.com.

Solution 1 is to get a real shell (even a real OS).

Solution 2 is to edit the rw1070/bin/BATCH file and replace

system("Rterm.exe $R_opts < $infile > $outfile 2>&1");

by

system("Rterm.exe $R_opts < $infile > $outfile");

and realize that probably the warning and error messages will not get 
diverted to the file.

If anyone knows definitively how to do this in command.com, please let 
R-Windows at r-project.org now.