Skip to content

Commit

Permalink
fix: revision analysis?
Browse files Browse the repository at this point in the history
  • Loading branch information
dshemetov committed Sep 25, 2024
1 parent f481bd7 commit b3f772c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/revision_analysis.R
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ revision_summary <- function(epi_arch,
should_compactify = TRUE) {
arg <- names(eval_select(rlang::expr(c(...)), allow_rename = FALSE, data = epi_arch$DT))
if (length(arg) == 0) {
first_non_key <- !(names(epi_arch$DT) %in% c(key_colnames(epi_arch), "version"))
arg <- names(epi_arch$DT)[first_non_key][1]
# Choose the first column that's not a key or version
arg <- setdiff(names(epi_arch$DT), c(key_colnames(epi_arch), "version"))[[1]]
} else if (length(arg) > 1) {
cli_abort("Not currently implementing more than one column at a time. Run each separately")
}
Expand Down

0 comments on commit b3f772c

Please sign in to comment.