R/API.R
runFunction.RdrunFunction runs a function using the do.call syntax, whereas runFunction.JSON accepts a JSON string conntaining the parameters to pass on to runFunction.
runFunction(
what,
args,
package = "RstoxFramework",
removeCall = TRUE,
onlyStoxMessages = TRUE,
onlyStoxWarnings = TRUE,
onlyStoxErrors = FALSE,
maxLength.Message = 2000,
maxLength.Warning = 2000,
maxLength.Error = 2000,
nwarnings = 10000,
collapseMessages = TRUE,
collapseWarnings = TRUE,
collapseErrors = TRUE,
messageLogFile = NULL,
warningLogFile = NULL,
errorLogFile = NULL,
messageAppend = FALSE,
warningAppend = FALSE,
errorAppend = FALSE,
uniquify = TRUE,
header = "> "
)
runFunction.JSON(cmd)either a function or a non-empty character string naming the function to be called.
a list of arguments to the function call. The
names attribute of args gives the argument names.
The name of the package holding the function given by what.
Logical: If FALSE, keep the call in the error message.
Logical: If TRUE show only the StoX messages, which are those starting with "StoX: ".
Logical: If TRUE show only the StoX warnings, which are those starting with "StoX: ".
Logical: If TRUE show only the StoX errors, which are those starting with "StoX: ".
The maximum number of characters to return for messages, warnings and errors, respectively (with allowed values 100...8170, default 1000).
The number of warnings to save.
Logical: If TRUE report only unique messages, warnings and errors, respectively, adding the number of occurrences in parenthesis.
If given, messages, warnings and errors are printed to these files.
Logical: If TRUE, append to the log files (messageLogFile, warningLogFile or errorLogFile, respectively)
Logical: If TRUE (the default) return unique messages, warnings and errors, with the nnumber of occurrences in parenthesis.
The string to start each line with.
A JSON string containing parameters listed above.