Rdo_args2txt_list: Extract the descriptions of the arguments of a function

View source: R/Rdutils.R

Rdo_args2txt_listR Documentation

Extract the descriptions of the arguments of a function

Description

Collect the descriptions of the arguments of a function in a named list with one element per argument.

Usage

Rdo_args2txt_list(x, arg, ...)

Arguments

x

help object, may be any of the types that Rd_fun accepts: Rd object, name of a function, or the the value returned by help.

arg

A character vector naming the arguments to describe. If arg is missing, descriptions of all arguments are extracted.

...

additional arguments to pass to Rdo_args2txt

Details

If several arguments are described in a single documentation entry, then the whole text of the entry is given for each of the arguments.

Value

A named list with one entry (a string) for each of the requested arguments.

Author(s)

Georgi N. Boshnakov

See Also

Rdo_args2txt

Examples

# each arg always gets an individual entry in the list;
# compare:
Rdo_args2txt_list("seq", c("from", "to", "by"))
# to:
cat(Rdo_args2txt("seq", c("from", "to", "by")))


gbRd documentation built on June 22, 2024, 11:34 a.m.