context("collect_file_pstr_likelihoods")
test_that("basic use", {
filename <- wiritttea::find_path("toy_example_3.RDa")
df <- wiritttea::collect_file_pstr_likelihoods(filename)
testthat::expect_equal(
names(df),
c("sti", "ai", "pi", "si", "likelihood")
)
testthat::expect_true(nrow(df) == 88)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.