[R] evaluate return values of commands executed with system()

Rainer M Krug r.m.krug at gmail.com
Fri Sep 19 18:37:43 CEST 2008


I would like to check the return value of commands executed with system()

I am using Linux (Ubuntu Hardy) and I am executing GRASS commands and
would like to call stop() when they return an error (i.e. return code
= 1).



Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation
Biology, UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Faculty of Science
Natural Sciences Building
Private Bag X1
University of Stellenbosch
Matieland 7602
South Africa

More information about the R-help mailing list