slack_shiny_ui | R Documentation |
This is a function factory that wraps a Shiny ui. If the user does not have a cookie for that site, they are prompted to login. Once they have a cookie, the UI displays as normal. #5
slack_shiny_ui(
ui,
team_id,
expiration = 90,
shinyslack_key = Sys.getenv("SHINYSLACK_KEY")
)
ui |
A 0- or 1-argument function defining the UI of a Shiny app, or a
|
team_id |
The Slack team ID through which the user is being authenticated. |
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. |
A function defining the UI of a Shiny app (either with login or without).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.