Learn R Programming

svMisc (version 0.9-60)

Args: Show function arguments in a human-readable way - get a call tip

Description

Args() displays function arguments in a better way than args() does. It is primarily intended for code tips in GUIs.

Usage

Args(name, only.args = FALSE)
CallTip(code, only.args = FALSE, location = FALSE)

Arguments

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.

Value

  • A string with the calling syntax of the function.

concept

Graphical user interface (GUI) control, calltip

See Also

argsTip, callTip