usesDots | R Documentation |
Find uses of ... in a function.
usesDots(fun)
fun |
a function |
A list of the calls in the function that use ....
Duncan Temple Lang
bar =
function(x, y = rep(1, length(x)), ...)
{
a = list(...)
plot(x, y, ...)
if(a[1] > 2)
text(x, y, ...)
}
d = usesDots(bar)
# In the default value of a formal argument/parameter
bar2 =
function(..., .objs = list(...))
sapply(.objs, class)
d = usesDots(bar2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.