-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.R
38 lines (33 loc) · 942 Bytes
/
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
#
# This is a Shiny web application. You can run the application by clicking
# the 'Run App' button above.
#
# Find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com/
#
# For local usage
packages <- c(
"shiny", "shinyjs", "shinyBS", "shinyWidgets", "shinycssloaders",
"openxlsx", "RColorBrewer", "corrplot", "periscope", "heatmaply"
)
new_packages <- packages[!(packages %in% installed.packages()[, "Package"])]
if (length(new_packages)) install.packages(new.packages)
lapply(packages, require, character.only = TRUE)
# For shinyapps.io
library("shiny")
library("shinyjs")
library("shinyBS")
library("shinyWidgets")
library("openxlsx")
library("RColorBrewer")
library("corrplot")
library("periscope")
library("heatmaply")
library("plotly")
# import UI
source("ui.R")
# import server
source("server.R")
# Run the application
shinyApp(ui = ui, server = server)