Resource client
Resource client
A R6 object of class ResourceClient
new()Creates a ResourceClient instance.
ResourceClient$new(resource)resourceThe 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.
clone()The objects of this class are cloneable with this method.
ResourceClient$clone(deep = FALSE)deepWhether to make a deep clone.
Helper class for connecting to a resource data store or a computation unit.