Rdo_section: Extract a section element from an Rd object or Rd fragment

Description Usage Arguments Details Value Note Author(s)

Description

Extract a section element from an Rd object or Rd fragment.

Usage

1
Rdo_section(rdo, sec)

Arguments

rdo

an Rd object or fragment

sec

the required section, a string

Details

If the class or the "Rd_tag" attribute of rdo is "Rd" the required section is extracted. Otherwise, if this attribute is equal to sec, then rdo is returned.

In all other cases it is assumed that rdo is the contents of the required section, its "Rd_tag" attribute is set to sec and returned without further modification.

Value

An Rd fragment for use as a section element of an Rd object

Note

This function is intended for use by other functions which work with Rd objects.

Author(s)

Georgi N. Boshnakov



Search within the gbRd package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.