CheckDots | R Documentation |
Function to check the use of unused arguments passed to ...
; this
function is designed to be called from another function to see if an
argument passed to ...
remains unused and alert the user if so. Also
accepts a vector of function or function names to see if ...
can be
used in a downstream function
CheckDots(..., fxns = NULL)
... |
Arguments passed to a function that fall under |
fxns |
A list/vector of functions or function names |
Behavior of CheckDots
can be controlled by the following option(s):
Seurat.checkdots
”Control how to alert the presence
of unused arguments in ...
; choose from
“warn
”: emit a warning (default)
“error
”: throw an error
“silent
”: no not alert the presence of unused
arguments in ...
Emits either an error or warning if an argument passed is unused;
invisibly returns NULL
## Not run:
f <- function(x, ...) {
CheckDots(...)
return(x ^ 2)
}
f(x = 3, y = 9)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.