Rd_canonize: Rd Canonical Form

Description Usage Arguments Details Functions Examples

Description

Canonical form is simply described as that which would come out from reading an Rd file via, tools::parse_Rd().

Usage

1
2
3
4
5
Rd_canonize(rd, ..., .check = TRUE)

Rd_canonize_text(rd, .check = TRUE, ...)

Rd_canonize_code(rd, .check = TRUE, ...)

Arguments

rd

the Rd container object to put in canonical form.

...

Arguments passed on to is_valid_Rd_object

x

object to test

strict

if the class must be set. A value of NA indicates that the first level need not be classed but all subsequent must be.

tags

the type of tag(s) allowed in the Rd_tag attribute.

deep

should contained elements also be checked for validity?

.check

Perform input checks?

Details

Canonical Rd Text has:

Canonical R code follows the following rules:

Functions

Examples

1
2
3
4
## Rd_c does not guarantee canonical code.
x <- Rd_c(Rd('Testing'), Rd('\n'))
str(x)
str(Rd_canonize(x))

Rd documentation built on May 23, 2019, 9:03 a.m.