Learn R Programming

rmongodb (version 1.8.0)

mongo.oid.print: Display a mongo.oid object

Description

Display formatted output of a mongo.oid object.

Usage

mongo.oid.print(x)

Arguments

x
mongo.oid The object to display.

Value

The parameter is returned unchanged.

Details

This version is an alias of print.mongo.oid() which allows print() to properly handle the mongo.oid class.

See Also

mongo.oid.print, mongo.oid.to.string, mongo.bson.oid, mongo.bson.

Examples

Run this code
oid <- mongo.oid.create()

# all display the same thing
print.mongo.oid(oid)
mongo.oid.print(oid)
print(oid)

Run the code above in your browser using DataLab