f_args: Names and Arguments of Functions

View source: R/f_args.R

f_argsR Documentation

Names and Arguments of Functions

Description

f_args is a wrapper of the base function args.

f_sig prints the name and arguments of one or several functions in a readable style. It wraps the function sig::sig.

p_sig prints the name and arguments of the functions exported by one or several packages. It wraps the function sig::list_sigs.

Usage

f_args(..., char = NULL)

f_sig(..., char = NULL)

p_sig(..., char = NULL, pattern = NULL)

Arguments

...

any format recognized by cnsc, except list. A vector of unquoted "functions" or characters.

char

(name to) a character vector. Use this argument if ... fails or if you call the function from another function. If used, argument ... is ignored.

pattern

a regular expression. See the example.

Examples

f_args(mean, p_display)
f_sig( mean, p_display)

library(brew)
library(sos)
p_sig(brew)
p_sig(RWsearch, sos, pattern = "^f")


RWsearch documentation built on March 18, 2022, 5:17 p.m.