context("package")
test_that("isLibrary", {
expect_true(isLibrary(lib = R.home("library")))
expect_false(isLibrary(lib = tempdir()))
expect_false(isLibrary(lib = "nonexistingdirectory"))
expect_error(isLibrary(lib = "nonexistingdirectory", strict = TRUE))
expect_false(isLibrary(lib = "DESCRIPTION"))
expect_error(isLibrary(lib = "DESCRIPTION", strict = TRUE))
}
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.