test_that("subtree_for_treejack() works", {
f <- function(...) {
capture.output(result <- kwb.fakin:::subtree_for_treejack(...))
result
}
expect_error(f())
expect_error(f(system.file(package = "kwb.fakin")))
f("root", paths = c("root/a/b", "root/a/c"), stdout = TRUE)
f("root", paths = c("root/a/b", "root/a/c"), stdout = FALSE)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.