FileResourceClient | R Documentation |
File resource client
File resource client
A R6 object of class FileResourceClient
Base class that connects to a file using a FileResourceGetter.
resourcer::ResourceClient
-> FileResourceClient
new()
Creates a new FileResourceClient instance.
FileResourceClient$new(resource, file.getter = NULL)
resource
A valid resource object.
file.getter
A FileResourceGetter object, optional. If not provided, it will be looked up in the FileResourceGetters registry. The operation will fail if none can be found.
A FileResourceClient object.
downloadFile()
Performs the file download, if it does not already exists locally.
FileResourceClient$downloadFile()
The local path to the downloaded file.
close()
Removes the file if it was downloaded. A local file resource will remain untouched.
FileResourceClient$close()
clone()
The objects of this class are cloneable with this method.
FileResourceClient$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.