methodDefinition: Access the data inside an S4 method definition

Description Usage Arguments Value Note See Also Examples

Description

Access the data inside an S4 method definition

Usage

1
2
3
methodFunction(f, signature, package)

methodFormals(f, signature, package)

Arguments

f

a generic function or the character-string name of one.

signature

the signature of classes to match to the arguments of f. See the details below.

package

character(1). Package name.

Value

Note

Updated 2021-08-13.

See Also

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
## Function ====
x <- methodFunction(
    f = "show",
    signature = "ANY",
    package = "methods"
)
class(x)
body(x)

## Formals ====
x <- methodFormals(
    f = "show",
    signature = "ANY",
    package = "methods"
)
class(x)
print(x)

acidgenomics/AcidBase documentation built on Sept. 10, 2021, 1:27 a.m.