-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathapp.R
More file actions
executable file
·27 lines (22 loc) · 727 Bytes
/
app.R
File metadata and controls
executable file
·27 lines (22 loc) · 727 Bytes
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
# Author: Ryan Peterson
# Date Created: 6/27/2017
# Date Modified: 7/18/2017
# Description: Shiny Application for multistate simulation design
## Makes sure packages are installed
list.of.packages <-
c('base', "survival", 'mstate', 'diagram', "shiny", 'shinyjs',
'colourpicker', 'xtable', 'shinyBS')
# new.packages <- list.of.packages[!(list.of.packages %in% installed.packages()[,"Package"])]
if(length(new.packages)) install.packages(new.packages, repos='http://cran.us.r-project.org')
library(shiny)
library(survival)
library(shinyjs)
library(mstate)
library(colourpicker)
library(xtable)
library(diagram)
library(shinyBS)
remove(list = objects())
source('shiny_helpers.R')
source('plot_statefig.R')
runApp('.')