Skip to content

Commit

Permalink
small change to solve errors with newline
Browse files Browse the repository at this point in the history
  • Loading branch information
larann901 committed Oct 9, 2024
1 parent bb2ee81 commit 455fbef
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/read_mpath.R
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ read_mpath <- function(
file = file,
delim = ";",
locale = .mpath_locale,
comment = '\r', # this is the newline, which is used as a comment in the m-Path files
show_col_types = FALSE,
col_names = TRUE,
col_types = type_char
Expand Down Expand Up @@ -280,7 +281,7 @@ read_meta_data <- function(
meta_data <- meta_data |>
mutate(type = case_match(
.data$typeAnswer,
"basic" ~ "i",
"basic" ~ "?",
"int" ~ "i",
"string" ~ "c",
"stringList" ~ "c", # the lists are read as strings and then converted to their respective types
Expand Down

0 comments on commit 455fbef

Please sign in to comment.