shinySlabApp: Create a Shiny app object with Soccerlab Authentication

View source: R/shiny.R

shinySlabAppR Documentation

Create a Shiny app object with Soccerlab Authentication

Description

This function modifies ui and server objects to run using Soccerlab authentication.

Usage

shinySlabApp(
  ui,
  server,
  config_file = NULL,
  roles = NULL,
  verboseFlag = getOption("slab_verbose"),
  ...
)

Arguments

ui

an ordinary UI object to create shiny apps.

server

an ordinary server object to create shiny apps.

config_file

path to JSON configuration file.

roles

atomic vector (character) of allowed roles, default NULL (= allow all).

verboseFlag

TRUE/FALSE will show all debug information (prints) AND verbose UI.

...

Other arguments as passed on to [shiny::shinyApp()].

Details

You can also use a different configuration file by setting the 'slab_config_file' option with: 'options(slab_config_file = "path/to/your_file.json")'.

Disable Soccerlab while developing apps

In order to develop without using SoccerLab authentication, one can run options(slab_disable = TRUE) to disable soccerlab temporarily.


quesdnv/spf_rshiny documentation built on Feb. 8, 2024, 1:58 p.m.