When using write_csv2 or format_csv2, leading whitespace is added to values in a number column if the numbers are of different length:
readr::format_csv(tibble(x = c(6, 66)))
# "x\n6\n66\n"
readr::format_csv2(tibble(x = c(6, 66)))
# "x\n 6\n66\n"
This is against the csv format (whitespace is significant). Perhaps add trim = TRUE to format in change_decimal_separator?
When using write_csv2 or format_csv2, leading whitespace is added to values in a number column if the numbers are of different length:
This is against the csv format (whitespace is significant). Perhaps add
trim = TRUEtoformatinchange_decimal_separator?