tests/testthat/test-coerce.R

nmTest({
  # Use centralized fit from helper-fits.R
  fit <- one.compartment.fit.saem

  test_that("as.rxUi works for estimated models", {
    expect_s3_class(as.rxUi(fit), "rxUi")
  })
})

Try the nlmixr2est package in your browser

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

nlmixr2est documentation built on Sept. 20, 2026, 9:08 a.m.