Java Mailing List Archive

http://www.r-help.com/

Home » Home (12/2007) » R Help for Statistical Computing »

[R] Using system to run a stand alone program that requires input
 in Windows

Dr Carbon

2005-07-14

Replies:

Under Windows I want to run a stand alone program that takes a number
of commands from the user. I've been running the program from the
command line using <

C:\Data\> foo.exe < params.txt

where foo is the program is params.txt is a text file with a few lines
(9) of parameters.

I want to run this from R using system a la:

system("foo.exe", input = "params.txt")

but that doesn't do it. What am I missing?

platform i386-pc-mingw32
arch   i386      
os     mingw32    
system  i386, mingw32
status            
major   2        
minor   1.0        
year   2005      
month   04        
day    18        
language R

______________________________________________
R-help@(protected)
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
©2008 r-help.com - Jax Systems, LLC, U.S.A.