Learn R Programming

rmongodb (version 1.8.0)

mongo.bson.destroy: Destroy a mongo.bson object

Description

Releases the resources associated with a mongo.bson object. It is not absolutely necessary to call this function since R's garbage collection will eventually get around to doing it for you.

Usage

mongo.bson.destroy(b)

Arguments

b
A (mongo.bson) object.

See Also

mongo.bson, mongo.bson.from.list, mongo.bson.from.buffer.

Examples

Run this code
b <- mongo.bson.from.list(list(name="Cheryl", age=29))
print(b)
mongo.bson.destroy(b)

Run the code above in your browser using DataLab