| reload | R Documentation |
Unloads a package if loaded, reinstalls it, and loads it again. Convenience function for the install-reload cycle during development.
reload(path = ".", document = FALSE, quiet = TRUE)
path |
Path to package root directory. |
document |
If TRUE and tinyrox is available, run tinyrox::document() before installing. Default FALSE. |
quiet |
Logical. Suppress install output? Default TRUE. |
TRUE if successful (invisibly).
# Calls install() under the hood, which writes to the user's R
# library. Wrapped in if(interactive()) so checks never mutate it.
if (interactive()) {
reload()
reload(document = TRUE)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.