##### Main app code:
MainUI <- fluidPage( navbarPage(title = "title", ## other voices navbarMenu("voice 5", tabPanel("menu 1", uiOutput("menu51") ), tabPanel("...") ) ))
MainServer <- function(input, output, session) { output$menu51 <- renderUI({ menu51UI }) }
##### menu51 code:
menu51UI <- fluidPage( navlistPanel( "menu 5>1", tabPanel("1", shinyApp(exampleUI, exampleServer) ), tabPanel("2"), tabPanel("3"), widths=c(2,10) ))
BedUtilitiesServer <- function(input, output, session) {##}
##### example app code:
exampleUI <- fluidPage(
titlePanel("Sort"), fluidRow( column(2, wellPanel( checkboxInput(inputId = 'directory_flag', label = 'Directory path?', value = FALSE), fileInput(inputId = "infiles", label = "Choose file(s)", multiple = TRUE), checkboxInput(inputId = 'descending_flag', label = 'Descending', value = FALSE), checkboxInput(inputId = 'merge_flag', label = 'Merge', value = FALSE), actionButton(inputId = "sortbed_button", label="sort file(s)", width = "100%", icon = icon(name="sort")), tags$hr(), tags$p("Loaded file(s):"), verbatimTextOutput("file_loaded") ) ), column(8, uiOutput("data_tables") ) ))
exampleServer <- function(input, output, session) { ## some computation functions}
##### Main app code:
MainUI <- fluidPage( navbarPage(title = "title", ## other voices navbarMenu("voice 5", tabPanel("menu 1", uiOutput("menu51") ), tabPanel("...") ) ))
MainServer <- function(input, output, session) { output$menu51 <- renderUI({ menu51UI }) }
##### menu51 code:
menu51UI <- fluidPage( navlistPanel( "menu 5>1", tabPanel("1",
######## uiOutput("example_ui") ), tabPanel("2"), tabPanel("3"), widths=c(2,10) ))
BedUtilitiesServer <- function(input, output, session) {output$example_ui <- renderUI({
####### exampleUI })}
##### example app code:
exampleUI <- fluidPage(
titlePanel("Sort"), fluidRow( column(2, wellPanel( checkboxInput(inputId = 'directory_flag', label = 'Directory path?', value = FALSE), fileInput(inputId = "infiles", label = "Choose file(s)", multiple = TRUE), checkboxInput(inputId = 'descending_flag', label = 'Descending', value = FALSE), checkboxInput(inputId = 'merge_flag', label = 'Merge', value = FALSE), actionButton(inputId = "sortbed_button", label="sort file(s)", width = "100%", icon = icon(name="sort")), tags$hr(), tags$p("Loaded file(s):"), verbatimTextOutput("file_loaded") ) ), column(8, uiOutput("data_tables") ) ))
exampleServer <- function(input, output, session) { ## some computation functions}