Args {svMisc} | R Documentation |
Args()
displays function arguments in a better way than args()
does. It is primarily intended for code tips in GUIs.
Args(name, only.args = FALSE) CallTip(code, only.args = FALSE, location = FALSE)
name |
A string with the name of a function |
code |
A fraction of R code ending with the name of a function, eventually followed by '(' |
only.args |
Do we return only arguments of the function
(arg1, arg2 = TRUE, ... ),
or the full call, like (myfun(arg1, arg2 = TRUE, ...) ). |
location |
If TRUE then the location (in which package the
function resides) is appended to the calltip between square brackets |
A string with the calling syntax of the function
Args()
is supposed to display S3 and S4 methods, and primitives
adequately,... but this is not implemented yet in the current version!
Philippe Grosjean <phgrosjean@sciviews.org>
Args("ls") CallTip("myvar <- lm(")