Skip to contents

Function to build Xpose run summaries.

Usage

runsum(
  object,
  dir = "",
  modfile = paste(dir, "run", object@Runno, ".mod", sep = ""),
  listfile = paste(dir, "run", object@Runno, ".lst", sep = ""),
  main = NULL,
  subset = xsubset(object),
  show.plots = TRUE,
  txt.cex = 0.7,
  txt.font = 1,
  show.ids = FALSE,
  param.table = TRUE,
  txt.columns = 2,
  force.wres = FALSE,
  ...
)

Arguments

object

An xpose.data object.

dir

The directory to look for the model and output file of a NONMEM run.

modfile

The name of the NONMEM control stream associated with the current run.

listfile

The name of the NONMEM output file associated with the current run.

main

A string giving the main heading. NULL if none.

subset

A string giving the subset expression to be applied to the data before plotting. See xsubset.

show.plots

Logical indicating if GOF plots should be shown in the run summary.

txt.cex

Number indicating the size of the txt in the run summary.

txt.font

Font of the text in the run summary.

show.ids

Logical indicating if IDs should be plotted in the plots for the run summary.

param.table

Logical indicating if the parameter table should be shown in the run summary.

txt.columns

The number of text columns in the run summary.

force.wres

Plot the WRES even if other residuals are available.

...

Other arguments passed to the various functions.

Value

A compound plot containing an Xpose run summary is created.

Author

Niclas Jonsson and Andrew Hooker

Examples

od = setwd(tempdir()) # move to a temp directory
(cur.files <- dir()) # current files in temp directory
#> [1] "bslib-f00e6fae00d8efe8984ec802f708f91a"
#> [2] "downlit"                               
#> [3] "file17a715324417"                      

simprazExample(overwrite=TRUE) # write files
(new.files <- dir()[!(dir() %in% cur.files)])  # what files are new here?
#> [1] "run1.ext"    "run1.lst"    "run1.mod"    "simpraz.dta" "xptab1"     

xpdb <- xpose.data(1)
#> 
#> Looking for NONMEM table files.
#>     Reading ./xptab1 
#> Table files read.
#> 
#> Looking for NONMEM simulation table files.
#> No simulated table files read.
#> 
runsum(xpdb)



file.remove(new.files) # remove these files
#> [1] TRUE TRUE TRUE TRUE TRUE
setwd(od)  # restore working directory