R/zzz.R

Defines functions .onUnload .onLoad

#' onLoad
#'
#' Set resource path when package is called
#'
#' @noRd
.onLoad <- function(libname, pkgname) {
    shiny::addResourcePath(
        prefix = "iceComponents",
        directoryPath = system.file(
            "iceComponents",
            package = "iceComponents"
        )
    )
}

#' onUnload
#'
#' Package cleanup
#'
#' @noRd
.onUnload <- function(libname, pkgname) {
    shiny::removeResourcePath(prefix = "iceComponents")
}
InControlofEffects/iceComponents documentation built on April 1, 2021, 5:51 a.m.