title: Connect R to remote mongoDB with rmongodb
body: <p>I'm trying to connect remotely to mongoDB from R: 
  The credentials code to connect looks like this.</p>
  
  <pre><code>library(rmongodb)
  mongo &lt;- mongo.create(host="111.222.333.444", name='', username="username",
                        password="password", db="dbname",
                        timeout = 10L)
  </code></pre>
  
  <p>MongoDB is installed locally, and the misterious side of the question is that the connection works using the command line tool. The call looks like this:</p>
  
  <pre><code>mongo host:port/dbname -u username -p password
  MongoDB shell version: 3.2.1
  connecting to: ...
  </code></pre>
  
  <p>I've also tried <code>RMongo</code> but didn't work either. Using OSX and R version 3.2.0.</p>