| crunchyBody {crunchy} | R Documentation |
A Shiny UI with Crunch auth
Description
When using crunchyServer() to wrap your app in Crunch authentication and
authorization, you need to wrap your UI body content inside crunchyBody().
Usage
crunchyBody(...)
Arguments
... |
UI elements for your app |
Details
This is the part that is conditionally rendered if the user is allowed.
Any UI elements you want always to show, including <head> tags, should go
outside this function.
Value
A uiOutput() container into which crunchyServer() will
conditionally render output.
See Also
crunchyPublicBody() crunchyServer()
Examples
## Not run:
shinyUI(fluidPage(
tags$head(
# This is content that will always be rendered
tags$title("My secure app")
),
crunchyBody(
# This is content that only is rendered if the user is authorized
fluidRow(
column(6, h1("Column 1")),
column(6, h1("Column 2"))
)
)
))
## End(Not run)
[Package crunchy version 0.3.3 Index]