Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
R driver for MongoDB
branch: master
Failed to load latest commit information.
rmongodb Replica set function name changes
.gitignore ignore env.c
COPYRIGHT.txt License info added
LICENSE.txt CRAN fixes query added to Distinct()
check.bat Driver Sync
install.bat R CMD INSTALL rmongodb upgrade to mongo-c-driver 0.7
rmongodb.pdf updated docs
test.R Driver Sync
test.bat moved test code out of onLoad()

This is an R extension supporting access to MongoDB.

After cloning the repo, drop mongo-c-driver's src directory into rmongodb/rmongodb/src. Alternately, unpack into rmongodb/rmongodb/src.

The driver is installed into R with:

R CMD INSTALL rmongodb

If you have compile problems, this may be due to interface changes to mongo-c-driver.
In rmongodb/ is an archived copy of mongo-c-driver ( that you can unpack to .../src . Since this is the version of the mongo-c-driver used in the development of rmongodb, you may have better results.

Once you have installed the package, it may be loaded from within R like any other:

>library("rmongodb") # for instance

To run the unit tests:

R --no-save < test.R

Something went wrong with that request. Please try again.