R/zzz.R

Defines functions .onUnload .onLoad

.onLoad <- function(libname, pkgname) {
  path <- system.file("static", package = "kinesis")
  shiny::addResourcePath(prefix = "static", directoryPath = path)

  op <- options()
  op.kinesis <- list(
    kinesis.workers = 1
  )
  toset <- !(names(op.kinesis) %in% names(op))
  if(any(toset)) options(op.kinesis[toset])

  invisible()
}

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

  invisible()
}

Try the kinesis package in your browser

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

kinesis documentation built on July 1, 2025, 5:08 p.m.