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)
resource
The 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)
file
The file to copy.
to
The copy destination.
verbose
If 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)
command
The command name.
params
A character vector of arguments to pass.
test
If 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)
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.