Learn R Programming

rmongodb (version 1.8.0)

mongo.shorthand: Define shorthand for BSON and GridFS

Description

Define shorthand names for BSON and GridFS functions and constants.

Usage

mongo.shorthand()

Arguments

Value

TRUE

Details

All symbols dealing with BSON and GridFS are defined by this function excluding the "mongo." prefix. They will still be available by the orginal names also. For clarity, the symbols in the mongo module (for communication with the server) are not shortened.

See Also

mongo.bson, mongo.gridfs, mongo.bson.buffer.create, mongo.bson.buffer.append, mongo.bson.from.buffer.

Examples

Run this code
mongo.shorthand()
buf <- bson.buffer.create()
bson.buffer.append(buf, "name", "Alice")
b <- bson.from.buffer(buf)

Run the code above in your browser using DataLab