FileResourceGetter | R Documentation |
File resource getter
File resource getter
A R6 object of class FileResourceGetter
Helper base class for getting the file described by the resource object. ResourceClient class implementations can use this utility to retrieve files from any locations before processing them according to the declared data format.
new()
Creates a new FileResourceGetter instance.
FileResourceGetter$new()
A FileResourceGetter object.
isFor()
Check that the provided parameter is of class "resource" and has a format defined.
FileResourceGetter$isFor(resource)
resource
The resource object to validate.
A logical.
downloadFile()
Stub function which subclasses will implement to make a "resource.file" object from a resource.
FileResourceGetter$downloadFile(resource, ...)
resource
A valid resource object.
...
Additional parameters that may be relevant for FileResourceGetter subclasses.
A "resource.file" object.
extractFileName()
Utility to get the base name from the file path.
FileResourceGetter$extractFileName(resource)
resource
A valid resource object.
The file base name.
makeDownloadDir()
Creates a directory where to download file in the R session's temporary directory. This directory will be flushed when the R session ends.
FileResourceGetter$makeDownloadDir()
The path to the download directory.
clone()
The objects of this class are cloneable with this method.
FileResourceGetter$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.