Nothing
# generate a vector containing different values
v <- c("a", "a", "b", "c", "c")
test_that("multiplication works", {
expect_equal(find_change_location(v), c(1, 3, 4))
})
v_test <- {}
test_that(
"check error for find_change_location",
{
expect_error(
find_change_location(v_test),
"The vector need to have length > 1."
)
}
)
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.