checkRd(Rd, defines = .Platform$OS.type, stages = "render",
unknownOK = TRUE, listOK = TRUE, ..., def_enc = FALSE)
## S3 method for class 'checkRd':
print(x, minlevel = -Inf, ...)
| Rd | a character string or an object of class "Rd". |
| defines | character vector describing what #ifdef conditions should be included. |
| stages | character vector describing the stages ("build", "install", or "render") at which \Sexpr macros should be processed. |
| unknownOK | logical value, if TRUE, report an issue when an unrecognized macro is encountered. If FALSE, emit a warning when an unrecognized macro is encountered. |
| listOK | logical value, if TRUE, report an issue when unnecessary non-empty braces are encountered. If FALSE, emit a warning when such braces are encountered. |
| ... | additional arguments to be passed to parse_Rd. |
| def_enc | logical value, if FALSE, report an issue when non-ASCII text is encountered in a document that does not declare an \encoding macro. |
| x | object of class "checkRd". |
| minlevel | a numeric value specifying the minimum issue level to print. |
## Not run:
library("tools")
doc <- parse_Rd(file.path(R.home(), "src/library/tools/man/checkRd.Rd"))
result <- checkRd(doc)
print(result, minlevel = 5)
## End(Not run)