tests/testthat/test-longOut.R

test_that("long output", {
  .ret <- .longOut("output = {Conc, Effect}
table  = {Ap, T12}")

  expect_snapshot(print(.ret))
  expect_error(as.list(.ret), NA)

  .ret2 <- list(output = c("Conc", "Effect"), table = c("Ap", "T12"))
  class(.ret2) <- "monolix2rxLongOut"
  expect_equal(.ret, .ret2)

  .ret <- .longOut("output = Conc
table  = Ap")

  expect_equal(as.character(.ret),
               c("output = Conc",
                 "table = Ap" ))

})

Try the monolix2rx package in your browser

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

monolix2rx documentation built on April 4, 2025, 3:54 a.m.