[R] usign system() both quietly and quickly

From: Henrik Andersson <h.andersson_at_nioo.knaw.nl>
Date: Sat 04 Jun 2005 - 00:38:24 EST


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@nioo.knaw.nl
http://www.nioo.knaw.nl/ppages/handersson

R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Sat Jun 04 00:56:20 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:32:22 EST