Skip to content

write.csv.raw colnames adds null character #38

@MaelAstruc

Description

@MaelAstruc

There is a bug in write.csv.raw() with this line:

cr = rawToChar(as.output(matrix(colnames(x),nrow=1),sep = sep))

rawToChar() is not necessary and creates a bug: writeBin() adds a null character at the end of the output if the input is a character. The file cannot be read with read.csv.raw() because the first character of the data is null (at the end of the columns names after \n).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions