Re: [R] How to tell if R is running in batch mode

From: Peter Dalgaard <p.dalgaard_at_biostat.ku.dk>
Date: Fri 22 Apr 2005 - 19:09:08 EST

"Khabie-Zeitoune, David" <David.Khabie-Zeitoune@brevanhoward.com> writes:

> Is there a way to programmatically tell whether R is running in batch or
> GUI mode?

interactive() should do (it's not distinguishing between GUI and terminal mode though).

-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk)             FAX: (+45) 35327907

______________________________________________
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 Fri Apr 22 19:22:28 2005

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