File Basename as column in Shiny/Flexdashboard


I'm trying to replicate an R script through a flexdashboard, part of which involves uploading multiple files.

Within the r script the filename is used to discriminate between files for the analysis however I haven't found a way to make this work in shiny.

I know I can access the filename through input$data$Name but I haven't been able to assign it as a column successfully. mutate(filename=gsub(" .csv", "", basename(flnm)) works in the r script but only returns errors in shiny. And I have tried with basename(input$data$Name) as well.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.