context("Rebuild")
test_that("rebuild forces a package to rebuilt, bypassing cache", {
renv_tests_scope("bread")
init()
records <- local({
renv_scope_sink()
rebuild("bread")
})
expect_length(records, 1L)
})
test_that("rebuild installs latest-available package if not installed", {
renv_tests_scope()
init()
records <- local({
renv_scope_sink()
rebuild("bread")
})
expect_true(renv_package_installed("bread"))
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.