set_app_parameters {periscope2} | R Documentation |
Set Application Parameters
Description
This function sets global parameters customizing the shiny application.
Usage
set_app_parameters(
title = NULL,
app_info = NULL,
log_level = "DEBUG",
app_version = "1.0.0",
loading_indicator = NULL,
announcements_file = NULL
)
Arguments
title |
Use add_ui_header to configure application title text |
app_info |
Application detailed information. It can be character string, HTML value or NULL
|
log_level |
Designating the log level to use for the user log as 'DEBUG','INFO', 'WARN' or 'ERROR' (default = 'DEBUG') |
app_version |
Character string designating the application version (default = '1.0.0') |
loading_indicator |
It uses waiter (see https://waiter.john-coene.com/#/). |
announcements_file |
. Use load_announcements to configure announcement. |
Value
no return value, called for setting new application global properties
Shiny Usage
Call this function from program/global.R
to set the application
parameters.
See Also
periscope2:announcementConfigurationsAddin()
periscope2:load_announcements()
periscope2:add_ui_left_sidebar()
periscope2:add_ui_right_sidebar()
periscope2:get_url_parameters()
Examples
library(shiny)
library(waiter)
library(periscope2)
# Inside program/global.R
set_app_parameters(app_info = HTML("Example info"),
log_level = "DEBUG",
app_version = "1.0.0",
loading_indicator = list(html = tagList(spin_1(), "Loading ...")))