Skip to content

CSV file sometimes displaying incorrectly #9970

Open
@rempsyc

Description

@rempsyc

I have generated a csv data file in R, and the file displays correctly in R or Excel, but not on OSF: (original link: https://osf.io/zh9rv)

bad data display

This issue is not new, but before, although nothing wrong appears in the csv file itself, I was able to edit the file directly on OSF to fix the incorrect display. The fix was (oddly) to remove the space between (in this case) the second column and the first (and adding a comma). However, it seems OSF has removed the ability to modify CSV files, so this workaround is no longer possible. I was able to fix it manually but I would still like to report this bug so it can be investigated [edit: not fixed after all, I just messed the file up earlier].

The example data file can be retrieved in the testing repository below. I've attempted to simplify the data frame to have a minimally reproducible example, but I am not able to identify the origin of the bug precisely. Removing some columns removes the bug, and readding them reintroduces the bug, but I don't see any clear pattern in the affected columns. Perhaps this is related to empty rows.

https://osf.io/v8b64

test

Edit: Here another example from a different research team: https://osf.io/4zp9b

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions