Skip to content

Commit

Permalink
Auto update test names for certain projects
Browse files Browse the repository at this point in the history
For projects where "-" is used in MetaData, but "vs" is used in results_long for tests.
  • Loading branch information
xinmin-zhang authored Mar 13, 2021
1 parent 19d0af1 commit ba5c8ad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion inputdata.R
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,8 @@ DataReactive <- reactive({
}
tests <-
as.character(MetaData$ComparePairs[MetaData$ComparePairs != ""])
#tests <- gsub("-", "vs", tests)
comp_tests=as.character(unique(results_long$test))
if (!all(tests %in% comp_tests) ) { tests <- gsub("-", "vs", tests) } #for projects where - used in MetaData, "vs" used in results_long
if (length(tests) == 0) {
tests = unique(as.character(results_long$test))
}
Expand Down

0 comments on commit ba5c8ad

Please sign in to comment.