-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathapp.R
More file actions
65 lines (49 loc) · 1.51 KB
/
app.R
File metadata and controls
65 lines (49 loc) · 1.51 KB
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
## install.packages("ISOweek")
## devtools::install_github("rstudio/shinydashboard")
## shiny::runGitHub(repo = "sdmxBrowser", username = "bowerth")
## setwd(file.path(dbpath, "GitHub", "sdmxBrowser"))
## source("app.R")
## shinyApp(ui, server)
## app.R ##
library(shiny)
library(shinydashboard)
source("global.R")
header <- dashboardHeader(title = "sdmxBrowser")
sidebar <- dashboardSidebar(
## disable = TRUE,
sidebarMenu(
menuItem("Browse Flows", tabName = "browseflows", icon = icon("th"))
## ,
## menuItem("Compare Flows", tabName = "compareflows", icon = icon("th"))
)
)
source(file.path("widgets", "browseflows_ui.R"))
## source(file.path("widgets", "compareflows_ui.R"))
body <- dashboardBody(
tabItems(
tabItem(tabName = "browseflows",
fluidRow(
browseflows.input,
browseflows.output)
)
## ,
## tabItem(tabName = "compareflows",
## ## h2("Widgets tab content")
## fluidRow(
## compareflows.input
## ,
## compareflows.output
## )
## )
)
)
ui <- dashboardPage(
header,
sidebar,
body
)
server <- function(input, output) {
source(file.path("widgets", "browseflows_server.R"), local = TRUE)
## source(file.path("widgets", "compareflows_server.R"), local = TRUE)
}
shinyApp(ui, server)