Description Usage Arguments Details See Also Examples
Releases the resources associated with a mongo.gridfs object.
1 | mongo.gridfs.destroy(gridfs)
|
gridfs |
A (mongo.gridfs) 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,
mongo.gridfs.create
,
mongo.gridfs.store.file
.
1 2 3 4 5 6 7 | mongo <- mongo.create()
if (mongo.is.connected(mongo)) {
gridfs <- mongo.gridfs.create(mongo, "grid")
# Copy a local file to the server as a gridfs file
mongo.gridfs.store.file(gridfs, "tests/test.R", "test.R")
mongo.gridfs.destroy(gridfs)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.