Description Usage Arguments Details Note Author(s) References See Also
Reloads a package. This function works exactly the same
as library
, except that it is
reloads the package if it already loaded. This is useful
for developers. For more information see
library
. Hadley Wickham has since
written the devtools
package which has a very
similar reload
function.
1 2 |
package |
Name or character string giving the name of a package. |
character.only |
A logical indicating whether
|
warn.conflicts |
If |
... |
Any other arguments that
|
While relibrary
is in the process of reloading a
package the options(relibrary)
will be set to name
of the package currently being reloaded. This can be
useful if the package to be reloaded would like save away
data until it is loaded again.
As of R 2.12, (and perhaps before) reloading of documentation files doesn't appear to be working. If you change doc files, then for the time being, the whole R session needs restarting.Relibrary does still work OK for updating source code changes.
Reloading packages after making changes to
documentation
If you edit an Rd file, rebuild,
reinstall & reload the package in an active R session,
you will get this error:
“Error in
fetch(key) : internal error -3 in R_decompress1
” I've
confirmed with Rdevel (2012-01-27) that it is impossible
to work around this error... you have to restart your R
session.
Prof Ripley: “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.” More info, including 3 suggestions
here:
http://r.789695.n4.nabble.com/Unable-to-reload-Rdoc-td4333063.html
Hadley's devtools::check_Rd
function will render
an Rd file without having to relaod it.
Henrik Bengtsson, henrikb@braju.com, http://www.braju.com/R/, updated by Mark Cowley.
https://stat.ethz.ch/pipermail/r-help/2002-January/018006.html http://r.789695.n4.nabble.com/Unable-to-reload-Rdoc-td4333063.html
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.