R/zzz.R

Defines functions .onUnload .onLoad

.onLoad <- function(libname, pkgname) {
  shiny::addResourcePath(
    prefix = "img",
    directoryPath = system.file(
      "www/img",
      package = "RSP"
    )
  )
  shiny::addResourcePath("sbs", system.file("www", package="shinyBS"))
}

.onUnload <- function(libname, pkgname) {
  shiny::removeResourcePath("img")
}

Try the RSP package in your browser

Any scripts or data that you put into this service are public.

RSP documentation built on Sept. 25, 2023, 1:07 a.m.