tests/testthat/test-uniqDASamp.R

test_that("uniqDASamp works", {
  data(mosquito)
   Y <- Yotu
   ID <- sample(c(1,1:length(Yotu)),replace = TRUE)
   folds <- 5

   ## the Y length and the ID length is not the same
   expect_error(uniqDASamp(Y, ID, folds))
})

Try the MUVR2 package in your browser

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

MUVR2 documentation built on Sept. 16, 2024, 9:06 a.m.