tests/testthat/test_histNormal.R

library(nipnTK)
context("Tests for histNormal")

svy <- dist.ex01
histNormal(svy$muac)
histNormal(svy$haz)
histNormal(svy$waz)
histNormal(svy$whz)

test_that("histNormal is NULL", {
  expect_is(histNormal(svy$muac), "NULL")
})

test_that("histNormal on non-numeric", {
  expect_error(histNormal(svy$oedema))
})

Try the nipnTK package in your browser

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

nipnTK documentation built on June 22, 2024, 11:06 a.m.