Function to create files for the simulated prazosin example in Xpose
Source:R/simprazExample.R
simprazExample.RdCreates NONMEM data, model and output files for a model of prazosin using simulated data.
Details
Creates files in the current working directory named: run1.ext run1.lst run1.mod simpraz.dta xptab1
See also
Other data functions:
add_transformed_columns,
change_graphical_parameters,
change_misc_parameters,
compute.cwres(),
data.checkout(),
data_extract_or_assign,
db.names(),
export.graph.par(),
export.variable.definitions(),
import.graph.par(),
import.variable.definitions(),
make.sb.data(),
nsim(),
par_cov_summary,
read.TTE.sim.data(),
read.nm.tables(),
read_NM_output,
read_nm_table(),
tabulate.parameters(),
xlabel(),
xpose.data,
xpose.print(),
xpose4-package,
xsubset()
Examples
od = setwd(tempdir()) # move to a temp directory
(cur.files <- dir()) # current files in temp directory
#> [1] "bslib-1ee912de293daf57e3d290381475f8e1"
#> [2] "downlit"
#> [3] "file1d46365640c1"
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"
file.remove(new.files) # remove these files
#> [1] TRUE TRUE TRUE TRUE TRUE
setwd(od) # restore working directory