Description Usage Arguments Examples
View source: R/domino.runCommand.R
Runs domino client command and runs success callback or shows failure message
1 2 | domino.runCommand(commandAndArgs, successCallback = domino.OK,
failureMessage = "Executing the command failed", stdInput = FALSE)
|
commandAndArgs |
The |
successCallback |
A function that will be called when domino command executes successfuly. Defaults to noop function. |
failureMessage |
A string representing failure message that should be printed when command fails. Has default value. |
stdInput |
Internal string data that is pushed to domino client's stdio streams. Default is no stdio stream input. |
1 2 3 4 5 6 7 8 9 10 | ## Not run:
success <- function() {
print("Success!")
}
domino.runCommand("run main.R 1 2 3",success, "failed to succeed")
# Runs command "run main.R 1 2 3" and
# calls 'success' function if domino command ends successfuly.
# Prints error message - "failed to succeed" if domino command fails.
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.