Nothing
context("convertNode")
data("tinyTree")
test_that("give errors when the provided arguments are not in correct form", {
expect_error(convertNode(tree = 2, node = 2))
expect_error(convertNode(tree = tinyTree, node = 20))
})
test_that("convertNode could return correct results", {
expect_convertNode_equal <- function(test, truth){
expect_equal(convertNode(tree = tinyTree, node = test), truth)
}
expect_convertNode_equal(17, "Node_17")
expect_convertNode_equal("Node_16", c(Node_16 = 16))
expect_convertNode_equal(c(2, 4, 5), c("t7", "t9", "t4"))
expect_convertNode_equal(2, "t7")
})
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.