matchFunctionSignature {wyz.code.offensiveProgramming} | R Documentation |
Retrieve Function Arguments.
Description
Compare two functions signatures and tells if they are exactly the same.
Usage
matchFunctionSignature(aFunction_f_1, aFunctionTemplate_f_1 = function(){})
Arguments
aFunction_f_1 |
a |
aFunctionTemplate_f_1 |
a |
Details
To get TRUE
as result, function and function model must share exactly the
sames attributes names and values, including default values if any used.
Value
A boolean
value.
Author(s)
Fabien Gelineau <neonira@gmail.com>
Maintainer: Fabien Gelineau <neonira@gmail.com>
Examples
matchFunctionSignature(sum, function(..., na.rm = FALSE) { NULL })
# [1] TRUE
matchFunctionSignature(sum, function(..., na.rm) { NULL })
#[1] FALSE
[Package wyz.code.offensiveProgramming version 1.1.24 Index]