Nothing
if (interactive()) {
pkgload::load_all()
library("tinytest")
}
data(mtcars)
expect_true(!is_valid_primary_key(mtcars, "qsec"))
expect_true(!is_valid_primary_key(mtcars, "carb"))
expect_true(!is_valid_primary_key(mtcars, c("qsec", "gear")))
expect_true(is_valid_primary_key(mtcars, c("qsec", "carb")))
cars <- mtcars
cars[["id"]] <- seq_len(nrow(cars))
expect_true(is_valid_primary_key(cars, "id"))
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.