tests/testthat/test-UtilMeanSquaresDBM.R

context("utils:UtilMeanSquaresDBM")
test_that("UtilMeanSquaresDBM", {
  
  fn <- paste0(test_path(), "/goodValues361/Utils/PseudoValues", "-", "Wilcoxon", ".rds")
  if (!file.exists(fn)) {
    warning(paste0("File not found - generating new ",fn))
    ret <- UtilPseudoValues(dataset02, FOM = "Wilcoxon")
    saveRDS(ret, file = fn)
  }
  
  ret1 <- readRDS(fn)
  ret2 <- UtilPseudoValues(dataset02, FOM = "Wilcoxon")
  expect_equal(ret2, ret1)
  # end of test
  
})

Try the RJafroc package in your browser

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

RJafroc documentation built on Nov. 10, 2022, 5:45 p.m.