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

Peter Dalgaard p.dalgaard at biostat.ku.dk
Fri Apr 22 11:09:08 CEST 2005


"Khabie-Zeitoune, David" <David.Khabie-Zeitoune at 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 at biostat.ku.dk)             FAX: (+45) 35327907




More information about the R-help mailing list