Learn R Programming

GeneSelectR (version 1.0.1)

.onAttach: Package Attachment Function

Description

This function is called when the package is attached. It checks for the availability of essential Bioconductor packages and alerts if any are missing.

Usage

.onAttach(libname, pkgname)

Arguments

libname

The name of the library.

pkgname

The name of the package.

Details

The function checks for the presence of specific Bioconductor packages that are essential for the package's functionality. If any required packages are missing, it displays a startup message advising the user to install the missing packages using BiocManager::install().

Instead of stopping the package loading process, it alerts the user about any missing dependencies, recommending their installation for full functionality.