tests/testthat/test-SimulatedDataset.R

test_that("The dataset is generated", {
  ds <- cal.dataset(error = "S1", nobs = 50)
  expect_equal(nrow(ds), 50)
})


test_that("The minimum set of colums are present", {
  ds <- cal.dataset(error = "S1", nobs = 50)
  targetCols <- c("Temperature", "TempError", "D47error", "D47", "Material")
  expect_true(all( targetCols %in% colnames(ds) ))
})

Try the bayclumpr package in your browser

Any scripts or data that you put into this service are public.

bayclumpr documentation built on April 1, 2023, 12:12 a.m.