-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathui.R
47 lines (40 loc) · 1.77 KB
/
ui.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
#### Load required libraries for ui.R
library(shiny)
library(shinydashboard)
## Source all files with the R functions - This will load the functions in the environment
file.sources = list.files("./Functions",full.names = T)
sapply(file.sources,source,.GlobalEnv)
## Shiny UI code
shinyUI(
dashboardPage(skin = "black",
dashboardHeader(title = "PMX Solutions - Population PK simulations",titleWidth = 450,
tags$li(a(href = 'http://www.PMXSolutions.com', # Link to the website
img(src = 'Logo.png',
title = "PMX Solutions", height = "50px"),
style = "padding-top:0px; padding-bottom:0px;"),
class = "dropdown")),
# Specify the sidebar menu items with icons
dashboardSidebar(
sidebarMenu(
id = "tabs",
menuItem("Model selection", tabName = "main_model", icon = icon("folder"),startExpanded=T,
menuSubItem('Pre-defined PK models',
tabName = 'model',selected=T)
),
menuItem("Simulation details", tabName = "siminfo", icon = icon("file-invoice")),
menuItem("Simulation output", tabName = "output", icon = icon("chart-area")),
actionButton("do", "Start simulation",icon = icon("paper-plane"),style='background-color: #FF9933; ' ),
hr(),
menuItem("Report generation", tabName = "report", icon = icon("book"))
)
),
# body of the app
dashboardBody(
tabItems(
tabItem(tabName = "model",UImodel()),
tabItem(tabName = "siminfo",UIsiminfo()),
tabItem(tabName = "output",UIoutput()),
tabItem(tabName = "report",UIreport())
)
)
))