OpalFileResourceGetter | R Documentation |
Opal file resource getter
Opal file resource getter
A R6 object of class OpalFileResourceGetter
Access a file that is stored in a Opal server. Use Basic authentication header if both resource's identity and secret are defined, token authentication if secret only is defined.
resourcer::FileResourceGetter
-> OpalFileResourceGetter
new()
Creates a new OpalFileResourceGetter instance.
OpalFileResourceGetter$new()
A OpalFileResourceGetter object.
isFor()
Check that the provided resource has a URL that locates a Opal file: the URL scheme must be "opal+http" or "opal+https" and the path must designate a file web service entry point (i.e. starts with "ws/files/").
OpalFileResourceGetter$isFor(resource)
resource
The resource object to validate.
A logical.
downloadFile()
Download the file from the Opal file system in a temporary location.
OpalFileResourceGetter$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.
OpalFileResourceGetter$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.