Rev 15700 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
\name{QA}\alias{checkDocArgs}\alias{checkDocStyle}\alias{checkMethods}\title{QA checks for R code and documentation}\description{Functions for performing various quality checks.}\usage{checkDocArgs(dir)checkDocStyle(dir)checkMethods(dir)}\arguments{\item{dir}{a character string specifying the path to a package's rootsource directory. This should contain the subdirectories \code{R}(for R code) and \file{man} with \R documentation sources (in Rdformat).}}\details{\code{checkDocArgs} checks, for all Rd files in a package, whether allarguments shown in the usage sections of the Rd file are documented inits arguments section. It also reports duplicated entries in thearguments section.\code{checkDocStyle} investigates how (S3) methods are shown in theusages of the Rd files in a package. It reports if methods are shownalong with their generic, which typically causes problems for thedocumentation of the primary argument of the generic. It also findsthe methods shown by their full name (rather than that of the genericusing the Rd \code{\\method} markup).\code{checkMethods} checks whether all methods defined in the packageR code have all arguments of the corresponding generic, withpositional arguments of the generics in the same positions for themethod. The generics are sought first in the given package and thenin the base package. The rules when \code{\dots} is involved aresubtle: see the source code.}\section{Warning}{These functions are still experimental. Both names and interfacesmight change in future versions.}\keyword{utilities}\keyword{documentation}