Skip to content

Unable to reload Rdoc

5 messages · Mark Cowley, Brian Ripley, Hadley Wickham +1 more

#
This is simply not supported.  Lazy-load databases are cached, and you 
cannot expect to change them during the R session once they have been used.

Spend the few milliseconds needed to start a new session.

And R CMD Rdconv is a much simpler way to check a changed .Rd file.
On 27/01/2012 09:47, Mark Cowley wrote:
You were warned ....

  
    
#
On Fri, Jan 27, 2012 at 3:47 AM, Mark Cowley <m.cowley at garvan.org.au> wrote:
To avoid this problem, the latest version of devtools has show_rd(),
which allows you to preview an Rd file in R without having to
reinstall the package.  This was actually really simple to implement,
and I don't know why I didn't think of it ages ago - it's certainly
made my workflow much smoother.

Hadley
#
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:
2 days later
#
Gentlemen,
Thanks for your insights, all 3 hints are very useful.

Mark
On 28/01/2012, at 8:29 AM, Henrik Bengtsson wrote: