context("urlize")
test_that("urlize returns String object", {
dd <- urlize("chelonia-mydas")
testthat::expect_equal(class(dd), "character")
})
test_that("urlize returns url-safe string", {
testthat::expect_equal(urlize("file name 1"), "file-name-1")
testthat::expect_equal(urlize("Natator depressus"), "natator-depressus")
})
# usethis::use_r("urlize")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.