Description Usage Arguments Details See Also Examples
Releases the resources associated with a mongo.gridfile object.
These are created by mongo.gridfs.find()
.
1 | mongo.gridfile.destroy(gridfile)
|
gridfile |
A (mongo.gridfile) object. |
It is not absolutely necessary to call this function since R's garbage collection will eventually get around to doing it for you.
mongo.gridfs.find
,
mongo.gridfile,
mongo.gridfs.
1 2 3 4 5 6 7 8 9 10 11 | mongo <- mongo.create()
if (mongo.is.connected(mongo)) {
gridfs <- mongo.gridfs.create(mongo, "grid")
mongo.gridfs.store.file(gridfs, "tests/test.R", "test.R")
gf <- mongo.gridfs.find(gridfs, "test.R")
if( !is.null(gf) ){
print(mongo.gridfile.get.upload.date(gf))
mongo.gridfile.destroy(gf)
}
mongo.gridfs.destroy(gridfs)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.