View source: R/matchFunctionSignature.R
matchFunctionSignature | R Documentation |
Compare two functions signatures and tells if they are exactly the same.
matchFunctionSignature(aFunction_f_1, aFunctionTemplate_f_1 = function(){})
aFunction_f_1 |
a |
aFunctionTemplate_f_1 |
a |
To get TRUE
as result, function and function model must share exactly the
sames attributes names and values, including default values if any used.
A boolean
value.
Fabien Gelineau <neonira@gmail.com>
Maintainer: Fabien Gelineau <neonira@gmail.com>
matchFunctionSignature(sum, function(..., na.rm = FALSE) { NULL })
# [1] TRUE
matchFunctionSignature(sum, function(..., na.rm) { NULL })
#[1] FALSE
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.