attach_package: Organise temporarily needed packages

Description Usage Arguments Details Value Author(s)

View source: R/HLP_attach_packages.R

Description

Attach required packages which may be detached after function run.

Usage

1
2
attach_package(pkg.cran = NULL, pkg.bioc = NULL, suppressUpdatesBioc = T,
  source.bioc = "http://bioconductor.org/biocLite.R")

Arguments

pkg.cran

Character vector with names of CRAN packages to attach

pkg.bioc

Character vector with names of Bioconductor packages to attach

suppressUpdatesBioc

logical. If FALSE, the user is asked whether old bioconductor packages should be updated. If TRUE, the user is not prompted to update old packages.

source.bioc

character with Bioconductor source site (e.g. http://bioconductor.org/biocLite.R)

pkg

Character vector with names of packages to be detached

Details

Help functions to organise package loading. Some functions require huge annotation packages which shall not be loaded for the full session. These packages are attached for an individual function and detached after function run. Packages are installed if necessary.

Value

character vector with package names which have not yet been attached to workspace before call of attach_package. This vector may be used to detach packages not needed any more with detach_package.

Author(s)

Frank Ruehle


frankRuehle/systemsbio documentation built on July 3, 2018, 10:05 a.m.