test_that("Unnamed character", {
expect_identical(
object = kebabCase(unnamed),
expected = c(
"percent-gc",
"x10um",
"x5-3-bias",
"x5prime",
"g2m-score",
"hello-world",
"hello-world",
"mazda-rx4",
"n-count",
"rnai-clones",
"tx2gene",
"tx2-gene-id",
"worfdb-html-remap",
"x123"
)
)
})
test_that("Disable X prefix", {
object <- c("1" = "1 foo bar")
expect_identical(
object = kebabCase(object),
expected = c("1" = "x1-foo-bar")
)
expect_identical(
object = kebabCase(object, prefix = FALSE),
c("1" = "1-foo-bar")
)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.