formals: Extracting Local Function Definition

Description Usage Arguments Value

Description

extractLocalFun Extracts local function from wrapper functions of the following type, typically used in S4 methods: function(a, b, ...){ .local <- function(a, b, c, d, ...){} .local(a, b, ...) }

Works for methods that are created (setMethod) as a wrapper function to an internal function named .local.

Usage

1
2
3

Arguments

f

definition of the wrapper function

Value

a function

a paired list like the one returned by formals.


pkgmaker documentation built on May 2, 2019, 4:42 p.m.