Skip to content

Commit

Permalink
Avoid placeholder of pipe as this was introduced in R 4.1.0 (min of p…
Browse files Browse the repository at this point in the history
…ackage is 4.0.0)
  • Loading branch information
Koen Niemeijer committed Oct 7, 2024
1 parent 9bbf2fe commit 5d05910
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions R/read_mpath.R
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,11 @@ read_mpath <- function(
# Get the type of each column in file to specify column types in readr::read_delim
type_char <- meta_data |>
select("columnName", "type") |>
rbind(cols_not_in_metadata) |>
dplyr::left_join(
rbind(cols_not_in_metadata)

type_char <- dplyr::left_join(
x = tibble(columnName = col_names),
y = _,
y = type_char,
by = "columnName"
) |>
mutate(type = ifelse(is.na(.data$type), "?", .data$type)) # not in metadata, let R guess the type
Expand Down

0 comments on commit 5d05910

Please sign in to comment.