Skip to content

Commit

Permalink
cleaning up pheval
Browse files Browse the repository at this point in the history
  • Loading branch information
nhall6 committed Jul 26, 2023
1 parent 2a72ff8 commit 1ff96fa
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions R/helpers-componentsCreateCustomColDefList.R
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ createCustomColDefList <- function(rawColNames, niceColNames = NULL,

# examples
# Define custom column definitions
# mydf = data.frame(raw = c("name", "age", "country"))
# customColDefs <- createCustomColDefList(
# rawColNames = mydf$raw,
# niceColNames = c("Name", "Age", "Country"),
Expand Down
9 changes: 7 additions & 2 deletions R/phevaluator-main.R
Original file line number Diff line number Diff line change
Expand Up @@ -438,15 +438,20 @@ phevaluatorServer <- function(
html = T
),
sql = reactable::colDef(show = F),
json = reactable::colDef(show = F)
json = reactable::colDef(show = F),
startDate = reactable::colDef(show = F),
startDate.1 = reactable::colDef(show = F),
endDate = reactable::colDef(show = F),
endDate.1 = reactable::colDef(show = F)

)

#define custom column definitions and render the result table
customColDefs <- utils::modifyList(phevalColList, buttonColDefs)


resultTableServer(id = "algorithmPerformanceResultsTable",
df = dataAlgorithmPerformance(),
df = dataAlgorithmPerformance,
colDefsInput = customColDefs,
downloadedFileName = "algorithmPerformanceResultsTable-")

Expand Down

0 comments on commit 1ff96fa

Please sign in to comment.