jeroen / mongolite

Fast and Simple MongoDB Client for R
https://jeroen.github.io/mongolite/
284 stars 64 forks source link

Example connection string invalid for inserting data #211

Open OliBravo opened 3 years ago

OliBravo commented 3 years ago

I tried to run the example from the Readme and I encountered an error trying to insert data.

This MongoDB deployment does not support retryable writes. Please add retryWrites=false to your connection string.

I had to adjust the connection string according to this error, so the valid one is like follows:

# Connect to demo server
con <- mongo("mtcars", url = "mongodb://readwrite:test@mongo.opencpu.org:43942/jeroen_test?retryWrites=false")