Returns the R source command of a result object.
rcmd(
obj,
...,
leadingArguments = NULL,
includeDefaultParameters = FALSE,
stringWrapParagraphWidth = 90,
prefix = "",
postfix = "",
stringWrapPrefix = "",
newArgumentValues = list()
)getObjectRCode(
obj,
...,
leadingArguments = NULL,
includeDefaultParameters = FALSE,
stringWrapParagraphWidth = 90,
prefix = "",
postfix = "",
stringWrapPrefix = "",
newArgumentValues = list(),
tolerance = 1e-07
)
A character
value or vector will be returned.
The result object.
Ensures that all arguments (starting from the "...") are to be named and that a warning will be displayed if unknown arguments are passed.
A character vector with arguments that shall be inserted at the beginning of the function command,
e.g., design = x
. Be careful with this option because the created R command may no longer be valid if used.
If TRUE
, default parameters will be included in all rpact
commands;
default is FALSE
.
An integer value defining the number of characters after which a line break shall be inserted;
set to NULL
to insert no line breaks.
A character string that shall be added to the beginning of the R command.
A character string that shall be added to the end of the R command.
A prefix character string that shall be added to each new line, typically some spaces.
A named list with arguments that shall be renewed in the R command, e.g.,
newArgumentValues = list(informationRates = c(0.5, 1))
.
The tolerance for defining a value as default.
getObjectRCode
(short: rcmd
) recreates
the R commands that result in the specified object obj
.
obj
must be an instance of class ParameterSet
.