tidyverse / readr

Read flat files (csv, tsv, fwf) into R
https://readr.tidyverse.org
Other
1.01k stars 286 forks source link

read_delim Unix vs windows newlines #1550

Open jxu opened 1 month ago

jxu commented 1 month ago

Seems to handle unix \n and windows \r\n. Is this documented anywhere? If a CSV file with \r\n newlines has \n in a field, the implementation will also treat that as a newline?

read_csv(I("x,y\r\na,b\nc\r\nc,d"))