test_that("available_packages", {
skip_on_cran()
pkgs <- available_packages(
repos = c(CRAN = "http://cran.rstudio.com"),
type = "source"
)
expect_true(inherits(pkgs, "matrix"))
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.