tests/testthat/test-rxUiDeparse.R

test_that("rxUiDeparse()", {

  rxUiDeparse(rxControl(), "a")
  expect_equal(rxUiDeparse(rxControl(), "a"),
               str2lang("a <- rxControl()"))

  expect_equal(rxUiDeparse(rxControl(covsInterpolation="linear", method="dop853",
                                    naInterpolation="nocb", keepInterpolation="nocb", sigmaXform="variance",
                                    omegaXform="variance", returnType="data.frame", sumType="fsum", prodType="logify",
                                    sensType="central"), "a"),
               str2lang("a <- rxControl(method = \"dop853\", covsInterpolation = \"linear\", returnType = \"data.frame\", sigmaXform = \"variance\", sumType = \"fsum\", sensType = \"central\", naInterpolation = \"nocb\", keepInterpolation = \"nocb\")"))

})
nlmixr2/rxode2 documentation built on Jan. 11, 2025, 8:48 a.m.