appInitHandler: Set a function that will be called when a new session of an...

View source: R/addHandler.r

appInitHandlerR Documentation

Set a function that will be called when a new session of an app is initialized.

Description

@param initHandler a function that takes parameters session, input, output and app. It will be called from the app$server function whenever a new session is created. It allows to initialize session specific variables and e.g. store them within the app object. The passed app object is already the local copy created for the new session.

Usage

appInitHandler(initHandler, app = getApp())

skranz/shinyEvents documentation built on Jan. 1, 2023, 9:25 a.m.