Skip to content

Commit

Permalink
Add one more test for monolix2rx for when the modeling file isn't pre…
Browse files Browse the repository at this point in the history
…sent
  • Loading branch information
mattfidler committed Sep 18, 2024
1 parent 9a010f7 commit 767d9f6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/testthat/test-mlxtran.R
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ test_that("mlxtran initial list", {
"",
"OUTPUT:",
"output={rx_pred_cp, rx_pred_effect}",
"")
"")

writeLines(modelLines, "pk.turnover.emax3-monolix.txt")

Expand Down Expand Up @@ -351,8 +351,12 @@ test_that("mlxtran initial list", {
expect_equal(rx$dfObs, 176)
expect_equal(rx$description,
"model translated from `babelmixr2` and `nlmixr2` function pk.turnover.emax3 to pk.turnover.emax3-monolix.txt")

v <- .mlxtran(lines)
expect_error(monolix2rx(v, update=FALSE)) # no file to read
}


})

})

0 comments on commit 767d9f6

Please sign in to comment.