Skip to content

Commit

Permalink
hack for input filename
Browse files Browse the repository at this point in the history
  • Loading branch information
ssnn-airr committed Mar 5, 2024
1 parent a5fe02f commit eca47b2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion inst/shiny-app/server.R
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,19 @@ server <- function(input, output) {

})


observeEvent(input$go, {

output$openResultsBtn <- renderUI({

#req(input$file1)
withProgress(
tryCatch(
{
dataValues$repcred_report_path <- repcred_report(input$file1$datapath,
# Hack to show the real file name in the inputs section of the report
new_name <- gsub(basename(input$file1$datapath), input$file1$name, input$file1$datapath)
file.rename(input$file1$datapath, new_name)
dataValues$repcred_report_path <- repcred_report(new_name,
genome_file=input$genome$datapath,
#sumrep = input$sumrep,
downsample = input$input_downsample)
Expand Down

0 comments on commit eca47b2

Please sign in to comment.