Skip to content

strongh/mongor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mongor

A pure R driver for MongoDB. Mongor is still in its infancy, but already supports basic operations including

  • inertions,
  • queries,
  • updates,
  • deletes, and
  • executing database commands.

MongoDB offers many more advanced features.

Getting Started

You’ll need a couple of things to use mongor.

  1. get MongoDB installed & running
  2. the rbson library

A teaser session (to convince the reader that at least some of the package works at all):

> myDocument <- list(mongo="R-friendly!") # R lists are the equivalent of Mongo's documents
> mc <- mongoConnect() # Opens a connection to a Mongo server, with localhost as the default
> mongoInsert(mc, myDocument) 
> mongoFind(mc, list(mongo=list("$exists"=TRUE))) # the list is a query document

All of the basic message types have been implemented; I’m still working on how best to expose Mongo’s services to R users. Any input is appreciated!

About

A pure R MongoDB driver.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages