test_that("use_revdep() requires a package", {
create_local_project()
expect_usethis_error(use_revdep(), "not an R package")
})
test_that("use_revdep() creates and ignores files/dirs", {
create_local_package()
use_revdep()
expect_proj_file("revdep", ".gitignore")
expect_true(is_build_ignored("^revdep$"))
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.