Skip to content

Changing default browser in options()

3 messages · Jorge A Ahumada, Tobias Verbeke, Brian Ripley

#
I usually startup R from within several directories (usually where the 
programs or data of interest are).  I like to use a small web browser 
called dillo to browse help files.  However, by default R looks for 
mozilla, so I have to type every single R session:

 > options(browser='dillo')

Is there anyway I can change this globally?

thanks,


J.
#
If you put the line
  
    options(browser='dillo')

in the .Rprofile of your home directory, it
will fire up dillo the next time.




HTH,

Tobias
#
On Mon, 11 Aug 2003, Jorge A Ahumada wrote:

            
Actually R looks for browser specified at configure time (if this is a 
Unix-alike).  So the first idea is to configure R to use dillo.
The default setting of options("browser") is set to be

options(browser = as.vector(Sys.getenv("R_BROWSER")))

and the browser found at configure time is set in the R_BROWSER variable 
in the file etc/Renviron.  So the second idea is to edit that file.

Finally, if this is a shared system, you can have the following in your
~/.Renviron file

R_BROWSER=${R_BROWSER-'dillo'}

See ?Startup.  (You could also use the Rprofile files, but people normally 
only have one .Renviron file.)
Several: see above.