Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

formals

Extracting Local Function Definition


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

extractLocalFun(f)

allFormals(f)

Arguments

f

definition of the wrapper function

Value

a function

a paired list like the one returned by formals.


pkgmaker

Development Utilities for R Packages

v0.32.2
GPL (>= 2)
Authors
Renaud Gaujoux [aut, cre]
Initial release
2020-10-20

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.