| argsTip {svMisc} | R Documentation |
argsTip() displays function arguments in a better way than args()
does. It is primarily intended for code tips in GUIs.
argsTip(name, only.args = FALSE, width = getOption("width"))
callTip(code, only.args = FALSE, location = FALSE, description = FALSE,
methods = FALSE, width = getOption("width"))
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
( |
width |
reformat the tip to fit that width, except if
|
location |
if |
description |
if |
methods |
if |
A string with the calling syntax of the function, plus additional information,
depending on the flag used. Note that methods can considerably slow
down the execution, especially for generic functions that have many methods
like print(), or summary!
argsTip() 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>
argsTip("ls")
callTip("myvar <- lm(")