[R] Mozilla 1.2

Jan de Leeuw deleeuw at stat.ucla.edu
Thu Nov 28 06:06:52 CET 2002


Curiously enough

 > options(browser="open -a Mozilla")
 > help.start()

open the index.html file in $R_HOME/doc/html in the default browser
(which happens to be Chimera on my machine, which has broken Java
support on Jaguar). So it ignores the -a switch. Maybe something with  
shell
escapes (?). In the shell "open -a Mozilla foo.html" works fine.

Indeed, "open" will use the default browser defined in LaunchServices  
if asked
to open a foo.html file. If I set Mozilla as my default browser in  
System
Preferences, then even

 > options(browser="open")
 > help.start()

works fine. So this is another way to do it. But unfortunately I don't  
want
carbon Mozilla as my default OS X browser. It's ugly.

So for me the little netscape script hack is the simplest way to go.

On Wednesday, November 27, 2002, at 11:14 AM, ripley at stats.ox.ac.uk  
wrote:

> But what you set could be "open -a Mozilla": it does not have to be
> `Mozilla'.  I assume that if `open' works from a shell in your example  
> it
> will equally work from the shell called by R to invoke the browser.
>
> On Wed, 27 Nov 2002, Jan de Leeuw wrote:
>
>> The problem with that is we need to open an OX X Carbon application
>> from the
>> terminal command line. If we just set the browser to Mozilla it opens
>> the X11 version,
>> but you cannot open Mozilla.app without using the "open" command. Your
>> suggestion will work, I hope, as soon as the GTK Mozilla is upgraded  
>> to
>> 1.2
>> in fink, provided that also handles the Java well. For the time being
>> the
>> little netscape script is a quiet and innocent hack. You can also call
>> it
>> mozilla, of course, and then use options("browser").
>>
>> On Wednesday, November 27, 2002, at 12:49 AM, ripley at stats.ox.ac.uk
>> wrote:
>>
>>> You could just use the `browser' option to help.start to select  
>>> Mozilla
>>> 1.2, or options("browser").
>>>
>>> On Wed, 27 Nov 2002, Jan de Leeuw wrote:
>>>
>>>> I should be more specific here. It works if you use Mozilla 1.2 to  
>>>> go
>>>> directly to the SearchEngine.html page in your $R_HOME. But
>>>> if you use help.start() from R, you typically use Mozilla 1.1 from
>>>> fink (the GTK version), which does not work. A quick hack is not to
>>>> say help.start(), but to say
>>>>
>>>> system(paste("open -a
>>>> Mozilla",paste(Sys.getenv("R_HOME"),"/doc/html/index.html",sep="")))
>>>>
>>>> This works for me and gives me the Carbon Mozilla 1.2. This does NOT
>>>> work
>>>> with Navigator, OmniWeb, and fortunately also not with MSIE.
>>>>
>>>> What also works is defining a script /usr/local/bin/netscape with
>>>>
>>>> #!/bin/sh
>>>> open -a Mozilla /usr/local/lib/R/doc/html/index.html
>>>>
>>>> and then using help.start().
>>>>
>>>> On Tuesday, November 26, 2002, at 10:30 PM, Jan de Leeuw wrote:
>>>>
>>>>> The R search engine (at least the one at
>>>>> http://stat.ethz.ch/R-alpha/R-patched/doc/html/)
>>>>> works again in Mozilla 1.2, released today (at least on OS X and  
>>>>> with
>>>>> JDK 1.4.1).
>>>> ===
>>>> Jan de Leeuw; Professor and Chair, UCLA Department of Statistics;
>>>> Editor: Journal of Multivariate Analysis, Journal of Statistical
>>>> Software
>>>> US mail: 9432 Boelter Hall, Box 951554, Los Angeles, CA 90095-1554
>>>> phone (310)-825-9550;  fax (310)-206-5658;  email:
>>>> deleeuw at stat.ucla.edu
>>>> homepage: http://gifi.stat.ucla.edu
>>>>
>>>> -------------------------------------------------------------------- 
>>>> --
>>>> --
>>>> -------------------------
>>>>            No matter where you go, there you are. --- Buckaroo  
>>>> Banzai
>>>>                     http://gifi.stat.ucla.edu/sounds/nomatter.au
>>>>
>>>> -------------------------------------------------------------------- 
>>>> --
>>>> --
>>>> -------------------------
>>>>
>>>> -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- 
>>>> .-
>>>> .-.-.-.-.-
>>>> r-help mailing list -- Read
>>>> http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
>>>> Send "info", "help", or "[un]subscribe"
>>>> (in the "body", not the subject !)  To:
>>>> r-help-request at stat.math.ethz.ch
>>>> _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._. 
>>>> _.
>>>> _._._._._
>>>>
>>>
>>> --
>>> 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 272860 (secr)
>>> Oxford OX1 3TG, UK                Fax:  +44 1865 272595
>>>
>>>
>> ===
>> Jan de Leeuw; Professor and Chair, UCLA Department of Statistics;
>> Editor: Journal of Multivariate Analysis, Journal of Statistical
>> Software
>> US mail: 9432 Boelter Hall, Box 951554, Los Angeles, CA 90095-1554
>> phone (310)-825-9550;  fax (310)-206-5658;  email:  
>> deleeuw at stat.ucla.edu
>> homepage: http://gifi.stat.ucla.edu
>>
>> ---------------------------------------------------------------------- 
>> --
>> -------------------------
>>            No matter where you go, there you are. --- Buckaroo Banzai
>>                     http://gifi.stat.ucla.edu/sounds/nomatter.au
>>
>> ---------------------------------------------------------------------- 
>> --
>> -------------------------
>>
>>
>
> -- 
> 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 272860 (secr)
> Oxford OX1 3TG, UK                Fax:  +44 1865 272595
>
>
===
Jan de Leeuw; Professor and Chair, UCLA Department of Statistics;
Editor: Journal of Multivariate Analysis, Journal of Statistical  
Software
US mail: 9432 Boelter Hall, Box 951554, Los Angeles, CA 90095-1554
phone (310)-825-9550;  fax (310)-206-5658;  email: deleeuw at stat.ucla.edu
homepage: http://gifi.stat.ucla.edu
   
------------------------------------------------------------------------ 
-------------------------
           No matter where you go, there you are. --- Buckaroo Banzai
                    http://gifi.stat.ucla.edu/sounds/nomatter.au
   
------------------------------------------------------------------------ 
-------------------------

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list