shinyslack_app: Launch a Shiny App with a Slack Login

View source: R/wrapper.R

shinyslack_appR Documentation

Launch a Shiny App with a Slack Login

Description

Launch a shiny::shinyApp() with an integrated Slack login.

Usage

shinyslack_app(
  ui,
  server,
  team_id,
  ...,
  expiration = 90,
  shinyslack_key = Sys.getenv("SHINYSLACK_KEY")
)

Arguments

ui

A 0- or 1-argument function defining the UI of a Shiny app, or a shiny::tagList().

server

A function with three parameters: input, output, and session. The function is called once for each session ensuring that each app is independent.

team_id

The Slack team ID through which the user is being authenticated.

...

Additional parameters passed on to shiny::shinyApp().

expiration

Days after which the cookie should expire. To remove an HttpOnly cookie, send a negative value for this attribute.

shinyslack_key

(optional) A key to use to encrypt the string. If not set, the string is returned unencrypted.

Value

An object that represents the app. See shiny::shinyApp() for details.


r4ds/shinyslack documentation built on March 26, 2024, 4:26 a.m.