## client user interface function
ui <- shiny::tagList(
shiny::navbarPage(
"Testpage",
shiny::tabPanel(
"Testpanel",
shiny::mainPanel(
navbarWidgetInput("testWidget")
)
)
)
)
## server function
server <- function(input, output, session) {
navbarWidgetServer("testWidget", orgName = "Test org", caller = "Rpkg")
}
## run the app in an interactive session and a Rapporteket like environment
if (interactive() && isRapContext()) {
shiny::shinyApp(ui, server)
}
Run the code above in your browser using DataLab