Suppress staticdocs test when run on a built package

This commit is contained in:
Joe Cheng
2014-02-10 11:58:40 -08:00
parent 3b90eed89f
commit c31d91668a

View File

@@ -1,7 +1,10 @@
context("staticdocs")
test_that("All man pages have an entry in staticdocs/index.R", {
if (!all(file.exists(c('../../staticdocs', '../../man')))) {
# This test works only when run against a package directory
return()
}
# Known not to be indexed
known_unindexed <- c("shiny-package")