mongo <- mongo.create()
if (mongo.is.connected(mongo)) {
gridfs <- mongo.gridfs.create(mongo, "grid")
gf <- mongo.gridfs.find(gridfs, "test.R")
if( !is.null(gf)){
print(mongo.gridfile.get.chunk.size(gf))
mongo.gridfile.destroy(gf)
}
mongo.gridfs.destroy(gridfs)
}
Run the code above in your browser using DataLab