use_apputils: Initialize apputils

Description Usage Arguments Details Value Examples

Description

Call this function once near the top of the Shiny UI definition.

Usage

1
2
use_apputils(use_rintrojs = FALSE, use_shinytoastr = FALSE,
  force_AdminLTE = FALSE)

Arguments

use_rintrojs

logical, also loads rintrojs package UI components via introjsUI.

use_shinytoastr

logical, also loads shinytoastr package UI components via useToastr.

force_AdminLTE

logical, force load AdminLTE.css from shinydashboard even if the app does not use a dashboard layout.

Details

Calling use_apputils loads package css into the head of a Shiny app. Optionally calls introjsUI() and/or useToastr(), in which case the Shiny app must have these packages loaded.

Value

HTML tags placed in the head of the app UI HTML file.

Examples

1
2
3
4
5
6
## Not run: 
use_apputils()
use_apputils(force_AdminLTE = TRUE)
use_apputils(use_rintrojs = TRUE, use_shinytoastr = TRUE)

## End(Not run)

leonawicz/apputils documentation built on May 13, 2019, 1:38 a.m.