Skip to content

Commit

Permalink
Merge pull request #28 from WilDoane/master
Browse files Browse the repository at this point in the history
Added guard check for the setting of document.  Fixes #27
  • Loading branch information
hadley committed Sep 5, 2011
2 parents 4e8b57f + 3284f39 commit 47c183c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion R/check.r
Expand Up @@ -13,7 +13,9 @@
check <- function(pkg = NULL, document = TRUE) {
pkg <- as.package(pkg)

document(pkg, clean = TRUE)
if (document) {
document(pkg, clean = TRUE)
}
message("Checking ", pkg$package)

built_path <- build(pkg, tempdir())
Expand Down

0 comments on commit 47c183c

Please sign in to comment.