test_that("initDir", {
x <- file.path(tempdir2(), "XXX")
expect_false(dir.exists(x))
y <- initDir(x)
## Existing directory should not generate warning.
y <- initDir(y)
expect_true(dir.exists(x))
expect_true(dir.exists(y))
expect_identical(realpath(x), realpath(y))
unlink2(x)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.