NMcheckDataFile function

check input data based on control stream

check input data based on control stream

Finds input data and checks compatibility with Nonmem control stream and runs NMcheckData. Don't call this function directly - use the file argument in NMcheckData instead.

NMcheckDataFile( file, col.row, col.id = "ID", formats.read = "csv", quiet = FALSE, file.mod, dir.data, as.fun, use.rds, ... )

Arguments

  • file: a model file (input or output control stream)
  • col.row: row identifier
  • col.id: subject identifier
  • formats.read: Prioritized input data file formats to look for and use if found. Default is c("csv") which means rds and fst will not be used. Typically only the csv file is wanted because we want to test the input data as read by Nonmem.
  • quiet: Keep quiet? Default is FALSE.
  • file.mod: How to find the input control stream if you are using the output control stream.
  • dir.data: The data directory can only be read from the control stream (.mod) and not from the output file (.lst). So if you only have the output control stream, use dir.data to tell in which directory to find the data file. If dir.data is provided, the .mod file is not used at all.
  • as.fun: The function to run results through before returning them.
  • use.rds: Deprecated. Use formats.read instead.
  • ...: passed to NMcheckData

Returns

A list of diagnostics

  • Maintainer: Philip Delff
  • License: MIT + file LICENSE
  • Last published: 2025-03-21