Nothing
test_that("existsGlobalVariable",{
expect_false(existsGlobalVariable("testGlobals"))
}
)
test_that("setGlobalVariable",{
setGlobalVariable("testGlobals", 1)
expect_true(existsGlobalVariable("testGlobals"))
}
)
test_that("getGlobalVariable",{
expect_equal(getGlobalVariable("testGlobals"), 1)
}
)
test_that("unsetGlobalVariable",{
unsetGlobalVariable("testGlobals")
expect_false(existsGlobalVariable("testGlobals"))
}
)
test_that("setGlobalVariableWithLongName",{
name <- truncateLongName(
paste0(sample(letters, getNameMaxLen(), replace = TRUE), collapse = ""),
warn = FALSE
)
setGlobalVariable(name, 1)
expect_true(existsGlobalVariable(name))
unsetGlobalVariable(name)
}
)
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.