Skip to content

fwrite breaks can't appropriately deal with string starting with double qoutes #1925

Closed
@amatsuo

Description

@amatsuo

fwrite output leaves one double-quote without escaping for a string starting with a double quote. This would make an output unreadable.

Here is an example:

test.data <- data.frame(x = c("\"hello", "world"), y = 1:2 )
fwrite(test.data, '~/Desktop/temp.csv')

and the output csv file looks like this:

x,y
"hello,1
world,2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions