[R-SIG-Mac] How to change default Browser for R

Christofer Bogaso bog@@o@chri@tofer @ending from gm@il@com
Sat Aug 4 19:23:01 CEST 2018


It worked.

On Sat, Aug 4, 2018 at 5:48 PM Marc Schwartz <marc_schwartz using me.com> wrote:

>
> > On Aug 4, 2018, at 2:41 AM, Christofer Bogaso <
> bogaso.christofer using gmail.com> wrote:
> >
> > Hi,
> >
> > In my Mac, I have 2 browsers installed :
> >
> > Chrome (system default)
> > Google Chrome Canary
> >
> > While for my regular browsing work I use Chrome, However for R I prefer
> to
> > use Canary (like, opening Help page). Is there any way to set Canary only
> > for R, however keeping system default unchanged.
> >
> > Thanks for your feedback.
>
>
> 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
>
>

	[[alternative HTML version deleted]]



More information about the R-SIG-Mac mailing list