Skip to content

Commit

Permalink
Update DRomicsInterpreter shiny app: update some texts when importing…
Browse files Browse the repository at this point in the history
… data
  • Loading branch information
aursiber committed Oct 9, 2024
1 parent a26c047 commit 7be4f88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inst/DRomicsInterpreter-shiny/server.R
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ server <- function(input, output, session) {
myexpr <- paste0("input$annotationData", idlev, "$datapath")
sep <- if(input$sep_annotationData) "'\t'" else "''"
validate(
need(try(annotationDF <- eval(parse(text = paste0("read.table(", myexpr, ", header = TRUE, stringsAsFactors = TRUE, sep = ", sep, ")")))), "Error reading the file")
need(try(annotationDF <- eval(parse(text = paste0("read.table(", myexpr, ", header = TRUE, stringsAsFactors = TRUE, sep = ", sep, ")")))), "Error reading the file containing annotation data.")
)
validate(
need(length(colnames(annotationDF)) == 2, paste0("Your annotation data at level ", idlev," set must have exactly two columns.\nPlease update your imported data."))
Expand Down

0 comments on commit 7be4f88

Please sign in to comment.