Learn R Programming

SeuratObject (version 4.1.4)

AttachDeps: 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)

Value

Invisibly returns NULL

Arguments

deps

A character vector of packages to attach

Examples

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

Run the code above in your browser using DataLab