Skip to content

Commit 4e37fe6

Browse files
committed
doc: another comment for a weird R idiom
1 parent a899188 commit 4e37fe6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

R/check_enough_data.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ check_enough_data_core <- function(epi_df, step_obj, col_names, train_or_predict
163163
# Aggregate across keys (if present)
164164
summarise(across(all_of(.env$col_names), any), .groups = "drop") %>%
165165
unlist() %>%
166+
# Select the names of the columns that are TRUE
166167
names(.)[.]
167168

168169
# Either all columns have enough data, in which case this message won't be
@@ -187,6 +188,7 @@ check_enough_data_core <- function(epi_df, step_obj, col_names, train_or_predict
187188
cols_not_enough_data <- cols_not_enough_data %>%
188189
summarise(across(all_of(.env$col_names), any), .groups = "drop") %>%
189190
unlist() %>%
191+
# Select the names of the columns that are TRUE
190192
names(.)[.]
191193
}
192194

0 commit comments

Comments
 (0)