GridFsFileResourceGetter | R Documentation |
GridFS file resource getter
GridFS file resource getter
A R6 object of class GridFsFileResourceGetter
Access a file that is in the MongoDB file store (GridFS). Credentials may apply.
resourcer::FileResourceGetter
-> GridFsFileResourceGetter
new()
Creates a new GridFsFileResourceGetter instance.
GridFsFileResourceGetter$new()
A GridFsFileResourceGetter object.
isFor()
Check that the provided resource has a URL that locates a GridFS object: either the URL scheme is "gridfs" or it is "mongodb"/"mongodb+srv" with a query parameter "prefix=fs" (that identifies GridFS collection names).
GridFsFileResourceGetter$isFor(resource)
resource
The resource object to validate.
A logical.
downloadFile()
Download the file from the MongoDB file store in a temporary location.
GridFsFileResourceGetter$downloadFile(resource, ...)
resource
A valid resource object.
...
Unused additional parameters.
The "resource.file" object.
clone()
The objects of this class are cloneable with this method.
GridFsFileResourceGetter$clone(deep = FALSE)
deep
Whether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.