Nothing
# load in the test dataset
system.file("extdata", "testChecklist.rda", package="BeeBDC") |>
load()
# Test the expected results
testthat::test_that("testChecklist expected number of columns", {
testthat::expect_equal(ncol(testChecklist), 24)
})
# Test classes
testthat::test_that("testChecklist expected class", {
testthat::expect_type(testChecklist, "list")
})
testthat::test_that("testChecklist expected class", {
testthat::expect_equal(attributes(testChecklist)$class, c("tbl_df","tbl","data.frame" ))
})
# TEST the full data
beesChecklist <- NULL
# load in the full dataset
beesChecklist <- BeeBDC::beesChecklist()
if(!is.null(beesChecklist)){
# Test the expected results
testthat::test_that("testChecklist expected number of columns", {
testthat::expect_equal(ncol(testChecklist), 24)
})
# Test classes
testthat::test_that("testChecklist expected class", {
testthat::expect_type(testChecklist, "list")
})
testthat::test_that("testChecklist expected class", {
testthat::expect_equal(attributes(testChecklist)$class, c("tbl_df","tbl","data.frame" ))
})
} #END !is.null
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.