Skip to content

rmongo doesn't handle correctly \r and \n characters #29

@StefanoSpada

Description

@StefanoSpada

A collection in mongo containing special char as a value, such as \r\n ..., results in breaking the returned data frame.

e.g.

db.test.find() --- in mongo

{ "_id" : ObjectId("a_value"), "item" : "nospecial", "qty" : "15" }

{ "_id" : ObjectId("a_value"), "item" : "spec\r\r\nial", "qty" : "15" }

dataframe -- in R

                  X_id      item qty

1 a_value nospecial 15

2 a_valuer spec NA

3 ial 15 NA

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