Description Usage Arguments Value Examples
View source: R/unused_formals.R
Is every function argument used in its body?
1 | unused_formals(fn, ns = NULL)
|
fn |
A function. |
ns |
If |
The arguments of fn
that are not used or if all are indeed used NULL
invisibly.
1 2 3 4 5 | add3 <- function(x, y, z = 0) {
x + y
}
unused_formals(add3)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.