@deeenes comment seems to work well.
You have to set your default browser:
options(browser = YOUR_BROWSER)
Where YOUR_BROWSER should be a string depicting the browser that you want R to use. For example 'firefox'.