From ripley at stats.ox.ac.uk  Wed Jun  9 13:40:25 2004
From: ripley at stats.ox.ac.uk (Prof Brian Ripley)
Date: Wed Jun  9 13:40:28 2004
Subject: [Rd] Re: 1.9.1-alpha & tty
In-Reply-To: <20040609113034.GB23805@stat.umu.se>
Message-ID: <Pine.LNX.4.44.0406091233300.22827-100000@gannet.stats>

On Wed, 9 Jun 2004, G?ran Brostr?m wrote:

> On Wed, Jun 09, 2004 at 01:23:49PM +0200, G?ran Brostr?m wrote:
> > I have two versions of R on my Debian testing: R-1.9.0 (precompiled) and
> > R-1.9.1-alpha of 2004-06-07 (built on my system). In the latter, I get
> > 
> > > system("emacs sim.R &")
> > > emacs: standard input is not a tty
> > 
> > while with R-1.9.0 it works as expected. I have absolutely no idea about
> > what's going on, so I could use some help. Anyone?
> 
> I just recalled that I was running R-1.9.1 as root ("su -; R") in order to
> be able to 'install.packages'. That must be the reason, but I still don't
> understand what it means.

It means the shell you are running it from is not an interactive shell
connected to a terminal, which is true as it is launched from R.  You are
trying to run a detached session with '&': that does not work for me in
1.9.0 without su -.

> system("emacs &")
> emacs: standard input is not a tty

as I would expect.

-- 
Brian D. Ripley,                  ripley@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


[Rd] Re: 1.9.1-alpha & tty
Prof Brian Ripley