detachPackage: detachPackage

Description Usage Arguments Examples

View source: R/detachPackage.R

Description

This function allows you unload packages quily by name (or as as string) Source: http://stackoverflow.com/questions/6979917/how-to-unload-a-package-without-restarting-r

Usage

1
2
detachPackage(name4pkg = "puttytat4R", character.only = FALSE,
  force = FALSE)

Arguments

name4pkg

Package name as object name or character

character.only

logical. default = FALSE (function will deparse object name to character)

force

logical. default = FALSE. If set to TRUE package will be detached even though other attached packages depend on it

Examples

1
2
3
4
5
#install.packages("ggplot2")
#library(ggplot2)
#unloadPackage(ggplot2)
#library(ggplot2)
#unloadPackage("ggplot2")

itawaputtytat/puttytat4R documentation built on Jan. 1, 2020, 9:46 a.m.