tests/testthat/test-nlmixr2PlotList.R

.p <- loadNamespace("nlmixr2plot")
test_that("newNlmixr2PlotList returns the correct class", {
  expect_type(.p$newNlmixr2PlotList(list(A="A")), type="list")
  expect_s3_class(.p$newNlmixr2PlotList(list(A="A")), class="nlmixr2PlotList", exact=TRUE)
})

test_that("newNlmixr2PlotList detects errors correctly", {
  expect_error(.p$newNlmixr2PlotList("A"))
  expect_error(.p$newNlmixr2PlotList(list("A")))
  expect_error(.p$newNlmixr2PlotList(list(A="A", "B")))
})

Try the nlmixr2plot package in your browser

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

nlmixr2plot documentation built on Oct. 20, 2022, 9:06 a.m.