| ShellResourceClient | R Documentation |
Shell resource client
Shell resource client
A R6 object of class ShellResourceClient
Executes local system shell commands.
resourcer::ResourceClient -> resourcer::CommandResourceClient -> ShellResourceClient
new()Create a ShellResourceClient instance. This client will interact wtih a computation resource using shell commands.
ShellResourceClient$new(resource)
resourceThe computation resource.
The ShellResourceClient object.
getAllowedCommands()Get the command names that can be executed.
ShellResourceClient$getAllowedCommands()
A character vector
copyFile()Copy one or more files (wilcard * is supported in the file name (which can be a directory))
ShellResourceClient$copyFile(file, to = ".", verbose = FALSE)
fileThe file to copy.
toThe copy destination.
verboseIf TRUE, details the file operations on the console output.
The path to the files having been copied.
exec()Executes a shell command in the working directory specified in the resource's URL.
ShellResourceClient$exec(command, params = NULL, test = FALSE)
commandThe command name.
paramsA character vector of arguments to pass.
testIf TRUE, the command is printed but not executed (for debugging).
The command execution result object.
clone()The objects of this class are cloneable with this method.
ShellResourceClient$clone(deep = FALSE)
deepWhether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.