AttachDeps {SeuratObject}R Documentation

Attach Required Packages

Description

Helper function to attach required packages. Detects if a package is already attached and if so, skips it. Should be called in .onAttach

Usage

AttachDeps(deps)

Arguments

deps

A character vector of packages to attach

Value

Invisibly returns NULL

Lifecycle

[Superseded]

AttachDeps has been superseded as of SeuratObject v5.0.0; as an alternative, list dependencies in the Depends section of DESCRIPTION

Examples

# Use in your .onAttach hook
if (FALSE) {
  .onAttach <- function(libname, pkgname) {
    AttachDeps(c("SeuratObject", "rlang"))
  }
}


[Package SeuratObject version 5.0.2 Index]