File: formals.Rd

package info (click to toggle)
r-cran-pkgmaker 0.32.10-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,192 kB
  • sloc: sh: 13; makefile: 2
file content (32 lines) | stat: -rw-r--r-- 724 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils.R
\name{extractLocalFun}
\alias{extractLocalFun}
\alias{allFormals}
\title{Extracting Local Function Definition}
\usage{
extractLocalFun(f)

allFormals(f)
}
\arguments{
\item{f}{definition of the wrapper function}
}
\value{
a function

a paired list like the one returned by \code{\link{formals}}.
}
\description{
\code{extractLocalFun} Extracts local function from wrapper functions of the following type, typically
used in S4 methods:
\samp{
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.
}