Skip to content

1.9.1-alpha & tty

5 messages · Göran Broström, Brian Ripley, Peter Dalgaard +1 more

#
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
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?

Thanks,

G?ran
#
On Wed, Jun 09, 2004 at 01:23:49PM +0200, G?ran Brostr?m wrote:
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.

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

            
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 -.
as I would expect.
#
Prof Brian Ripley <ripley@stats.ox.ac.uk> writes:
It's probably a matter of whether DISPLAY is set:
(Redhat 8)

"su -" will usually not set DISPLAY since root might not have
credentials to write to the display (which might be on a completely
unrelated system).
#
To answer a completely different question than the one you pose, an
alternative strategy for Debian's default system install is to give
ownership of /usr/local/lib/R/site-packages to a group and make it
group writable, granting membership to those who are allowed to
install packages. 


G?ran Brostr?m <gb@stat.umu.se> writes: