Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
StefanoSpada opened this issue Jun 2, 2014 · 1 comment
Open

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

StefanoSpada opened this issue Jun 2, 2014 · 1 comment

Comments

@StefanoSpada
Copy link

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

@tc
Copy link
Owner

tc commented Jun 6, 2014

Thanks @StefanoSpada i added a failing unit test to https://github.com/tc/RMongo/tree/bug-fix/newline

Happy to accept any patch requests to pass the tests (R CMD check) :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants