R-alpha: 0.14: x11() is started even if I have own .First(...) which does not

Kurt Hornik (Kurt.Hornik@ci.tuwien.ac.at)
Fri, 6 Dec 1996 12:44:26 +0100


Date: Fri, 6 Dec 1996 12:44:26 +0100
Message-Id: <199612061144.MAA00229@aragorn.ci.tuwien.ac.at>
From: Kurt Hornik <Kurt.Hornik@ci.tuwien.ac.at>
To: Martin Maechler <maechler@stat.math.ethz.ch>
Subject: R-alpha: 0.14: x11() is started even if I have own .First(...) which does not
In-Reply-To: <9612060940.AA10222@>

>>>>> On Fri, 6 Dec 96 10:40:28 +0100,
>>>>> Martin Maechler <maechler@stat.math.ethz.ch> said:

> This used to work differently (when there was no .Rprofile), and the way I
> wanted it, in  0.13 : 

> If I have an own .First function which does NOT start  x11().
> But in 0.14, it is started anyway :

>> ls()       ##--- another BUGlet : I want to see  ".First" if I have an own:
> character(0)
>> .First
> function () 
> {
> 	if (interactive()) 
> 		cat("MM\'s  .First: Not starting  x11()\n")
> }
>> q("yes")
> florence{local}455> R

> R : Copyright 1996, Robert Gentleman and Ross Ihaka
> Version 0.14  (Released: November 29, 1996) -- + patches (Martin Mä)
						
> R is free software and comes with ABSOLUTELY NO WARRANTY.
> You are welcome to redistribute it under certain conditions.
> Type "license()" for details.

> [Previously saved workspace restored]

> MM's  .First: Not starting  x11()
>> ## BUT it IS started  ANYWAY!
>> 

Martin:

Works fine for me if my ~/.Rprofile contains

.First <- function () 
{
  if (interactive()) 
    cat("MM\'s  .First: Not starting  x11()\n")
}

But apparently one cannot assign to .First() and save the result for
later sessions.

-k
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
r-testers mailing list -- For info or help, send "info" or "help",
To [un]subscribe, send "[un]subscribe"
(in the "body", not the subject !)  To: r-testers-request@stat.math.ethz.ch
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-