Skip to content

Commit fac2194

Browse files
author
smeyer
committed
tools::checkDocFiles() no longer overlooks nullary functions
git-svn-id: https://svn.r-project.org/R/trunk@87263 00db46b3-68df-0310-9c12-caf00c1e9a41
1 parent 77cea26 commit fac2194

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

doc/NEWS.Rd

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,9 @@
273273
character data. Set environment variable
274274
\env{_R_CHECK_PACKAGE_DATASETS_SUPPRESS_NOTES_}
275275
to a false value for the previous behaviour.
276+
277+
\item \code{tools::checkDocFiles()} now also notes \emph{nullary}
278+
functions shown in the usage section without corresponding \verb{\alias}.
276279
}
277280
}
278281

src/library/tools/R/QC.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1442,7 +1442,7 @@ function(package, dir, lib.loc = NULL, chkInternal = NULL)
14421442
## try to deal with data set documentation.
14431443
ind <- vapply(exprs,
14441444
function(e)
1445-
length(e) > 1L && !is_data_for_dataset(e),
1445+
is.call(e) && !is_data_for_dataset(e),
14461446
NA, USE.NAMES=FALSE)
14471447
exprs <- exprs[ind]
14481448
## Split out replacement function usages.

0 commit comments

Comments
 (0)