test_that("isGitRepo", {
x <- getwd()
ok <- isGitRepo(x)
expect_type(ok, "logical")
ok <- isAGitRepo(x)
expect_type(ok, "logical")
ok <- allAreGitRepos(x)
expect_type(ok, "logical")
expect_false(isGitRepo(1L))
expect_false(isAGitRepo(1L))
expect_false(allAreGitRepos(1L))
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.