inst/examples/postgresql/postgres_analytics.R

library(shiny)
library(shiny.semantic)
library(semantic.dashboard)
library(shinyjs)
library(tidyr)
library(dplyr)
library(purrr)
library(plotly)
library(timevis)
library(ggplot2)
library(mgcv)
library(config)
library(DT)

# Please install shiny.telemetry with all dependencies
library(shiny.telemetry)

# Default storage backend using PostgreSQL
data_storage <- DataStoragePostgreSQL$new(
  user = "postgres", password = "mysecretpassword"
)

analytics_app(data_storage = data_storage)

# shiny::shinyAppFile(system.file("examples", "postgresql", "postgres_analytics.R", package = "shiny.telemetry")) # nolint: commented_code, line_length.
Appsilon/shiny.stats documentation built on Dec. 18, 2024, 6:14 a.m.