inst/apps/302-bootswatch-themes/app.R

library(shiny)
if (!require("bslib")) {
  stop("bslib not installed")
}
if (!require("thematic")) {
  stop("thematic not installed")
}
library(ggplot2)
library(DT)

# Get the 'original' version of this app from the bslib package
# (so we don't have to update tests/screenshots)
# https://github.com/rstudio/bslib/pull/572
Sys.setenv("BSLIB_LEGACY_THEMER_APP" = TRUE)
shinyAppDir(system.file("themer-demo", package = "bslib"))
rstudio/shinycoreci documentation built on April 11, 2025, 3:17 p.m.