context("unit test for project functions")
test_that("getProject works when there .project doesn't exist", {
.delete_project_env()
expect_null(getProject(x))
})
test_that("getProject works when there .project exists", {
.create_project_env()
.project$path_proj <- getwd()
expect_equal(getProject("path_proj"), getwd())
.project$path_proj <- NULL
expect_null(getProject("path_proj"))
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.