1.9.1-alpha & tty
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