[R] usign system() both quietly and quickly

Henrik Andersson h.andersson at nioo.knaw.nl
Fri Jun 3 16:38:24 CEST 2005


I try to run an external application (A diffusive transport model 
programmed in Fortran 95) in a loop using the approach

for(i in 1:100) {
1. write parameters[i] to inputfile for application
2. Run application using system("application.exe")
3. Read output written to a file by application to a list
}


The thing that annoys me is I can not figure out how to suppress the 
output from this application to the screen. If I use 
system(...,intern=T) it takes much longer to complete and is obviously 
not what I want.

Any ideas?

Have a nice weekend!

R running under ESS/Emacs
--------------------------
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

---------------------------------------------
Henrik Andersson
Netherlands Institute of Ecology -
Centre for Estuarine and Marine Ecology
P.O. Box 140
4400 AC Yerseke
Phone: +31 113 577473
h.andersson at nioo.knaw.nl
http://www.nioo.knaw.nl/ppages/handersson




More information about the R-help mailing list