From 5d05910673aed20b873c48006a1b4e7544e93e0b Mon Sep 17 00:00:00 2001 From: Koen Niemeijer Date: Mon, 7 Oct 2024 16:44:53 +0200 Subject: [PATCH] Avoid placeholder of pipe as this was introduced in R 4.1.0 (min of package is 4.0.0) --- R/read_mpath.R | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/R/read_mpath.R b/R/read_mpath.R index ffebb0d..dd43d80 100644 --- a/R/read_mpath.R +++ b/R/read_mpath.R @@ -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