Nothing
test_that(
"validate_labelled_conversion detects invalid labels",
{
x <- structure(
c("a", "b"),
labels = list(
a = "label_a",
b = "label_b"
),
class = "prelabelled"
)
result <- validate_labelled_conversion(x)
expect_false(result$valid)
expect_type(result$message, "character")
}
)
test_that(
"validate_labelled_conversion returns expected structure",
{
x <- prelabel(
c("r", "png"),
labels = c(
r = "source_code",
png = "visualisation"
)
)
result <- validate_labelled_conversion(x)
expect_named(result, c("valid", "message"))
expect_type(result$valid, "logical")
}
)
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.