Skip to content
Prev 12479 / 15075 Next

How to change default Browser for R

Hi,

There are several steps involved during R ?Startup that set system and session specific ?options.

In your ~/.Rprofile, for session specific settings, you can add something like the following:

  options(browser = "/usr/bin/open -a '/Applications/Google Chrome.app'")

replacing the Chrome binary filename above with the Canary name.

Be sure to exit your R session after setting the above, then start a new session to pick up the change.

The above works for me, to change the default from Safari to Chrome, just within my R session, without affecting the system default.

Regards,

Marc Schwartz