modify this code so if the web browser is refreshed, we dont loose the data from the…
- User
modify this code so if the web browser is refreshed, we dont loose the data from the current session: packages <- c( "tidyverse", "shiny", "shinydashboard", "shinyFiles", "shinyWidgets", "shinythemes","RColorBrewer","ggthemes","plotly","shinyBS","processx" )
#Now load or install&load all packages package.check <- lapply( packages, FUN = function(x) { if (!require(x, character.only = TRUE)) { #install.packages(x, dependencies = TRUE) library(x, character.only = TRUE,lib.loc="/home/pxl10/R/x86_64-pc-linux-gnu-library/4.2/") } } )
options(shiny.port = 3142) options(shiny.host = "10.50.156.93")
loci <- "" sample_list <- ("")
ui <- dashboardPage( skin = "red", dashboardHeader(title = "Nanopore TB tNGS Assay",titleWidth = 300),
###side tab setup dashboardSidebar( width = 300,
codebr(),br(), ### shinyFiles::shinyDirButton("test_dir_select",label = "Select Nanopore Run Folder",title = "Directory selection",icon = shiny::icon("folder")), shiny::htmlOutput("test_dir_select_ready") ,br(),br(), fileInput(inputId = "file_sample",label = "Select Sample Sheet",multiple = FALSE), br(), selectizeInput(inputId = "workflow",label = "Select Amplicon Workflow",choices = c("Main AR Targets", "Extended AR Targets"),multiple = FALSE),br(), selectizeInput(inputId = "flowcell",label = "Flow Cell type",choices = c("R9","R10"),multiple = FALSE),br(), textInput("run_name", label="Enter Run Name", "", width = "600px"),br(),br(),br(),br(),br(),br(),br(),br(), bsButton(inputId = "go", width = "250px",label = " Start Pipeline", icon = icon("play-circle"), style = "success") ),dashboardBody( fluidRow( tabBox( # The id lets us use input$tabset1 on the server to find the current tab id = "tabset1", height = "1100px",width=12, tabPanel(title = "tNGS AMR Targets", # Select sample fluidRow( column(2, (selectInput(inputId = "sample", label = "Sample:",choices = sample_list, selected = sample_list[1])))), fluidRow( column(2, h3("Loci Status:"), tableOutput('table'),br(),
code - Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.