This function is called when the package is attached. It checks for the availability of essential Bioconductor packages and alerts if any are missing.
.onAttach(libname, pkgname)
The name of the library.
The name of the package.
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.