test_that("we can list files properly", {
retrieved_files <- tr_get_files(
directory = system.file("extdata", package = "tRavis"),
pattern = "^test",
remove_string = "test_",
date = TRUE
)
expect_length(retrieved_files, 2)
expect_named(retrieved_files, c("file1", "file2"))
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.