Skip to content

write_tsv adds whitespace characters to NA #930

@dfjenkins3

Description

@dfjenkins3

Hi,

Using readr 1.2.1 I'm getting extra whitespace characters around NA values when I use write_tsv. Here's an example:

example.txt

library(readr)
a <- read_tsv("example.txt")
write_tsv(a, path = "example2.txt")

In this example the 'NA' values are written as '\s\s\s\s\s\sNA'

Let me know if you need any other info.

Thanks,

David

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions