tests/testthat/test-fileinfo.R

test_that("fileinfo", {

  .fi <- .fileinfo("file='pk.turnover.emax3-monolix.csv'
  delimiter = comma
  header = {ID, TIME, EVID, AMT, DV, ADM, YTYPE, nlmixrRowNums}")

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

  expect_equal(.fi$file, "pk.turnover.emax3-monolix.csv")
  expect_equal(.fi$header, c("ID", "TIME", "EVID", "AMT", "DV", "ADM", "YTYPE", "nlmixrRowNums"))
  expect_equal(.fi$delimiter, "comma")

})

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.