Skip to content

Commit

Permalink
Added guard check for the setting of document
Browse files Browse the repository at this point in the history
  • Loading branch information
WilDoane committed Sep 3, 2011
1 parent 4e8b57f commit 3284f39
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 3284f39

Please sign in to comment.