R - get help in the browser instead of the built-in R-helper

I saw two different R-help behaviors (for example, when entering ?density ):

  • help is open in your browser by default
  • help is open in the built-in R-helper (window inside R)

I currently have a second behavior, but I would like to open help in a browser. Can I somehow easily switch between these two behaviors? Without reinstallation. Ideally, setting some option R.

+6
source share
3 answers
 options(help_type = "html") # open help in browser options(help_type = "text") # open help internally 
+8
source

If you have this problem in OSX, you may need to follow this process (apologies I cannot remember where I found this):

  • edit /Applications/RStudio.app/Contents/Resources/R/Options.R (e.g. nano ... )

  • comment on the entry as follows:

 # options(browser = function(url) # { # .Call("rs_browseURL", url) ; # }) 
+5
source

You can also use the help.start () function. Then paste the URL from the console into any browser, for example. when you start help.start () in the console, the following is displayed:

help.start () If nothing happens, you must open ' http://127.0.0.1:17741/doc/html/index.html yourself

So I copy http://127.0.0.1:17741/doc/html/index.html in Chrome or Firefox and get R-help in the browser.

0
source

All Articles