ResourceClient | R Documentation |
Resource client
Resource client
A R6 object of class ResourceClient
Helper class for connecting to a resource data store or a computation unit.
new()
Creates a ResourceClient instance.
ResourceClient$new(resource)
resource
The resource object to be interprated.
A ResourceClient object.
getResource()
Get the resource object.
ResourceClient$getResource()
The resource object.
getConnection()
Get the implementation-specific object that connects to the resource
ResourceClient$getConnection()
The connection object.
downloadFile()
Stub function to be implemented by subclasses if relevant. Get the resource as a local file.
ResourceClient$downloadFile(...)
...
Additional parameters.
The path to the local file.
asDataFrame()
Stub function to be implemented by subclasses if relevant. Coerce the resource as a data.frame.
ResourceClient$asDataFrame(...)
...
Additional parameters.
A data.frame object (can also be a tibble).
asTbl()
Stub function to be implemented by subclasses if relevant. Coerce the resource as a dplyr's tbl.
ResourceClient$asTbl(...)
...
Additional parameters.
A dplyr's tbl object.
exec()
Stub function to be implemented by subclasses if relevant. Executes a command on a computation resource.
ResourceClient$exec(...)
...
Additional parameters that will represent the command to execute.
A command execution result object.
close()
Silently closes the connection to the resource
ResourceClient$close()
clone()
The objects of this class are cloneable with this method.
ResourceClient$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.