Skip to content
Prev 42367 / 63424 Next

Unable to reload Rdoc

Related: To simplify reloading a help page after restarting R, I do
have the following in my ~/.Rprofile:

# Always only the HTML help on the same port
local({
  port <- sum(c(1e3,10)*as.double(R.Version()[c("major", "minor")]));
  ports <- 10*port + 0:9;
  options(help.ports=ports);
});

# Try to start HTML help server
tryCatch({
  if (interactive()) {
    tools::startDynamicHelp();
  }
}, error = function(ex) {
  print(ex);
})

That way the URL for the help page remain the same (as long as you
only run one R session) and the internal web server is up and running
(no need for help.start()).

My $.02

/Henrik
On Fri, Jan 27, 2012 at 6:15 AM, Hadley Wickham <hadley at rice.edu> wrote: