test_that("basenameSansExt", {
path <- c("dir/foo.txt", "bar.tar.gz", "DESCRIPTION")
expect_identical(
basenameSansExt(path),
c("foo", "bar", "DESCRIPTION")
)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.