This attempts to unload and reload an installed package. If the package is not loaded already, it does nothing. It's not always possible to cleanly unload a package: see the caveats in unload() for some of the potential failure points. If in doubt, restart R and reload the package with library().

reload(pkg = ".", quiet = FALSE)

## Arguments

pkg package description, can be path or package name. See as.package() for more information if TRUE suppresses output from this function.

load_all() to load a package for interactive development.

## Examples

# NOT RUN {
# Reload package that is in current directory
# }