Skip to content

Commit

Permalink
use tidyselect instead of dplyr for where()
Browse files Browse the repository at this point in the history
  • Loading branch information
parmsam-pfizer committed Sep 25, 2023
1 parent 643452b commit ae3304f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/read_log_file.R
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ parse_log <- function(nested_log) {
into = c("setting", "value"),
extra = "merge",
) %>%
dplyr::mutate(dplyr::across(dplyr::where(is.character), stringr::str_trim))
dplyr::mutate(dplyr::across(tidyselect::where(is.character), stringr::str_trim))

parsed_log$`Session Information`$`Packages` <-
nested_log$`Session Information`$`Packages` %>%
Expand Down Expand Up @@ -219,7 +219,7 @@ parse_log <- function(nested_log) {
into = c("setting", "value"),
extra = "merge",
) %>%
dplyr::mutate(dplyr::across(dplyr::where(is.character), stringr::str_trim))
dplyr::mutate(dplyr::across(tidyselect::where(is.character), stringr::str_trim))
}

if ("Masked Functions" %in% names(nested_log)) {
Expand Down

0 comments on commit ae3304f

Please sign in to comment.