These functions are provided to construct Rd structure. In some cases additional compliance checks are included.
Rd_alias(alias)Rd_aliases(aliases)
Rd_author(author)
Rd_arguments(..., items = list(...), indent = getOption("Rd::indent",
TRUE), indent.with = getOption("Rd::indent.with", " "))
Rd_code(code)
Rd_concept(concept)
Rd_concepts(concepts)
Rd_description(..., content = Rd(...))
Rd_examples(..., content = list(...))
Rd_item(item, description = NULL)
Rd_keyword(key, .check = TRUE)
Rd_keywords(keys, .check = TRUE)
Rd_name(name)
Rd_title(title)
Rd_usage(..., usages = list(...))
Rd_value(value)
an alias as a plain string.
a character vector, each element a separate alias.
a string, a person object, or another Rd object.
Rd elements to be contained in the tag.
arguments each should be an 'item' tag, newlines to separate items are added automatically.
indent content
string to use for indent.
a string to be converted to RCODE
then wrapped in the 'code' tag.
the concept name, as a plain string.
a vector of concepts each to be put in a concept tag.
the item text
an optional description that if provided changes the 'item' tag into a two parameter, rather than a single item tag followed by the item text.
A string denoting a valid Rd keyword.
perform validity checks?
A character vector denoting valid Rd keywords.
A string for a name of the Rd document.
A string giving the title.
lines of usage, all should be bare strings
or RCODE
strings.
The return value, must be a correctly formatted Rd object.
Rd_alias
: Create an alias tag.
Rd_aliases
: Create multiple aliases
Rd_author
: Create author tags
Rd_arguments
: create an arguments tag
Rd_code
: Create a code tag.
Rd_concept
: Create a 'concept' tag.
Rd_concepts
: Create multiple concepts.
Rd_description
: Create a description tag.
Rd_examples
: Create an examples tag.
Rd_item
: Create an item tag.
Rd_keyword
: Create a keyword tag.
Rd_keywords
: Create multiple keyword tags.
Rd_name
: Create a name tag.
Rd_title
: Create a title tag.
Rd_usage
: Create a usage tag.
Rd_value
: Create a value tag section.
# NOT RUN {
Rd_item("an item")
Rd_item('a', 'the first letter of the alphabet.')
Rd_keyword('documentation')
# }
Run the code above in your browser using DataLab