R/zzz.R

Defines functions .onUnload .onLoad

.onLoad = function(libname, pkgname) {
  shiny::addResourcePath(
    prefix = "assets",
    directoryPath = shinymath_file("assets")
  )
}

.onUnload = function(libname, pkgname) {
  shiny::removeResourcePath("assets")
}
tomicapretto/shinymath documentation built on Dec. 31, 2020, 8:43 a.m.