R/zzz.R

Defines functions .onUnload .onLoad

.onLoad <- function(libname, pkgname)
{
    if (!SparseArray_option_is_set("nthread"))
        set_SparseArray_nthread()
}

.onUnload <- function(libpath)
{
    library.dynam.unload("SparseArray", libpath)
}
Bioconductor/SparseArray documentation built on Oct. 30, 2024, 12:14 p.m.