Skip to content

Commit

Permalink
Fixed annoying warning for gather.
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzoFabbri committed Nov 3, 2023
1 parent b727b1d commit a9ed9cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/process_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -679,7 +679,7 @@ handle_transformation <- function(dat, id_var, by_var, transformation_fun) {
# When log-transforming, original variable should be strictly positive
if (deparse(transformation_fun) %in% c(log, log10, log2, log1p, logb)) {
res <- dat |>
tidylog::select(-dplyr::all_of(id_var)) |>
tidylog::select(-dplyr::all_of(c(id_var, by_var))) |>
tidylog::gather() |>
tidylog::group_by(key) |>
tidylog::summarise(
Expand Down

0 comments on commit a9ed9cf

Please sign in to comment.