Learn R Programming

wyz.code.metaTesting (version 1.1.4)

shareSameSignature: Share same signature

Description

Determine if two function share the same signature of arguments

Usage

shareSameSignature(function_f_1, functionTemplate_f_1)

Arguments

function_f_1

A R function to check arguments from

functionTemplate_f_1

A R function to check arguments with

Value

A boolean value.

Examples

Run this code
# NOT RUN {
# typical examples
shareSameSignature(cos, sin) # TRUE

shareSameSignature(is.logical, sin) # TRUE

shareSameSignature(sum, cos) # FALSE

# }

Run the code above in your browser using DataLab