test_that("nds_load_data returns error if 'pattern' is missing", {
expect_error(nds_load_data(), "'pattern' is missing")
})
test_that("nds_load_data returns error if 'pattern' doesn't detect any file", {
expect_error(nds_load_data("xyz"), "Files not found")
})
test_that("nds_load_data returns error if 'sep' is invalid", {
expect_error(nds_load_data(
"driver",
folder = system.file("extdata", package = "ndsbr"),
sep = "."
), "invalid 'sep' value")
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.