context("Checking Outputs")
test_that("checking value",{
expect_identical(round(pCorrBin(2,4,0.5,0.004),4),
0.6815)
})
test_that("checking class",{
expect_that(pCorrBin(2,4,0.5,0.0001),
is_a("numeric"))
})
test_that("checking length of output",{
expect_equal(length(pCorrBin(1:2,4,0.5,0.0001)),2)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.