[R-SIG-Mac] Detecting GUI vs console?

Prof Brian Ripley ripley at stats.ox.ac.uk
Fri Aug 13 16:29:12 CEST 2010


On Fri, 13 Aug 2010, Ben Haller wrote:

> Hi all.  I've started using mclapply(), which doesn't work well in the GUI. 
> I'd like to protect my code against mistakes by checking for whether I'm 
> running under the GUI or the console.  Is there a standard way to do this?

See ?.Platform

> Thanks!
>
> Ben Haller
> McGill University

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595



More information about the R-SIG-Mac mailing list