-
Notifications
You must be signed in to change notification settings - Fork 0
/
globals.R
51 lines (45 loc) · 1.63 KB
/
globals.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
41
42
43
44
45
46
47
48
49
50
51
geographies <- setNames(nm = state.abb, state.name)
geographies[['US']] <- 'United States'
geographies[['DC']] <- 'District of Columbia'
available_geographies <- geographies[scan_for_available_geographies(names(geographies))]
invert_geographies <- setNames(nm = unname(geographies), object = names(geographies))
tabnames <- c(
about = "Introduction",
scenarios = "Scenarios",
predefined = "Predefined Scenarios",
customscenarios = "Build Custom Scenarios",
estimates = "Estimates",
timetrends = "Time Trends",
agegroups = "Age Groups",
calibration = "Comparison to Recent Data",
readmore = "Further Description",
changelog = "Changelog",
feedback = "Feedback",
addOutputs = "Counts of Services",
aboutcosts = "Cost Introduction",
entercosts = "Input Costs",
costsoutcomes = "Costs and Outcomes",
costcomparison = "Cost Effectiveness Comparison"
)
tabcontents <- list(
about = aboutUI(available_geographies),# uiOutput('aboutUI'),
scenarios = NULL,
predefined = standardInterventionsUI(),
customscenarios = scenariosUI(),
estimates = tabby1Estimates('tabby1'),
timetrends = tabby1TimeTrends('tabby1'),
agegroups = tabby1AgeGroups('tabby1'),
calibration = comparison_to_recent_data(),
readmore = readmoreUI(),
changelog = changelogUI(),
feedback = feedbackForm(),
addOutputs = addOutputs('tabby1'),
aboutcosts = aboutcostsUI(),
entercosts = inputCostsUI(),
costsoutcomes = costsOutcomesUI('tabby1'),
costcomparison = costComparisonUI('tabby1')
)
if (exists('debug', envir = .GlobalEnv) && isTRUE(debug)) {
tabnames[['debug']] <- 'Debug Printouts'
tabcontents[['debug']] <- debugPrintouts()
}