reload

0th

Percentile

Unload and reload package.

This attempts to unload and reload a 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.

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

package description, can be path or package name. See as.package for more information

quiet

if TRUE suppresses output from this function.

Aliases
  • reload
Examples
# NOT RUN {
# Reload package that is in current directory
reload(".")

# Reload package that is in ./ggplot2/
reload("ggplot2/")

# Can use inst() to find the package path
# This will reload the installed ggplot2 package
reload(inst("ggplot2"))
# }
Documentation reproduced from package devtools, version 1.13.5, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.