# NOT RUN {
library("shiny")
library("shinydashboard")
server <- function(input, output) {
# Create some simple file dataa
data <- reactive({
list(
"individual" = data.frame(
individualID = c("a", "b", "c"),
age = c(23, 24, 24),
stringsAsFactors = FALSE
),
"biospecimen" = data.frame(
individualID = c("a", "b", "c"),
specimenID = c("a1", "b1", "c1"),
isReal = c(FALSE, FALSE, FALSE),
stringsAsFactors = FALSE
)
)
})
# Show file summary
callModule(file_summary_server, "summary", file_data = data)
}
ui <- function(request) {
dashboardPage(
header = dashboardHeader(),
sidebar = dashboardSidebar(),
body = dashboardBody(
includeCSS(
system.file("app/www/custom.css", package = "dccvalidator")
),
file_summary_ui("summary")
)
)
}
# }
# NOT RUN {
shinyApp(ui, server)
# }
Run the code above in your browser using DataLab