test_that("packageManagement can identify installed packages", {
expect_true(package.installed("base"))
})
test_that("packageManagement can identify non-installed packages", {
expect_false(package.installed("boa constrictor", askInstall = FALSE))
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.