context("is.directory")
test_that("is.directory works", {
expect_that(is.directory("."), is_true())
expect_that(is.directory(tempfile()), equals(NA))
expect_that(is.directory(file.path(R.home("doc"), "COPYING")), is_false())
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.