-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathapp.R
41 lines (36 loc) · 1.01 KB
/
app.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
library(rio)
library(ExcelToShiny)
library(shiny)
library(shinyjs)
library(plotly)
library(shinydashboard)
library(jsonlite)
library(rjson)
library(ggplot2)
library(tibble)
library(stringr)
library(forcats)
library(lubridate)
library(purrr)
library(tidyr)
library(dplyr)
library(gt)
library(readxl)
library(openappr)
library(ggthemes)
library(shinyauthr)
library(zoo)
library(stringdist)
# source any R files which you use in the app:
source("Personal Setup.R") # file containing personal set up info
source("PfR_loading_data.R")
source("Credentials_data.R")
# file containing functions used in the creation and the R script to import/tidy the function
# Excel file with the specifications in it
data_l <- import_list("PfR_Shiny.xlsx")
# Run the shiny dashboard
build_shiny(title = "PfR Dashboard",
data_list = data_l,
data_frame = plhdata_org, # put name of data frame
status = "primary",
key_var = "id") # irrelevant for you, but, set to be any variable in there.