Learn R Programming

SciViews (version 0.8-8)

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, ...)).

Value

  • A string with the calling syntax of the function

See Also

createCallTipFile, guiCallTip

Examples

Run this code
Args("ls")
	CallTip("myvar <- lm(")

Run the code above in your browser using DataLab