nmxml | R Documentation |
Import model estimates from a NONMEM xml file
nmxml(
run = numeric(0),
project = character(0),
file = character(0),
path = character(0),
root = c("working", "cppfile"),
theta = TRUE,
omega = TRUE,
sigma = TRUE,
olabels = NULL,
slabels = NULL,
oprefix = "",
sprefix = "",
tname = "THETA",
oname = "...",
sname = "...",
index = "last",
xpath = ".//nm:estimation",
env = NULL
)
run |
run number. |
project |
project directory. |
file |
deprecated; use |
path |
the complete path to the |
root |
the directory that |
theta |
logical; if TRUE, the |
omega |
logical; if TRUE, the |
sigma |
logical; if TRUE, the |
olabels |
labels for |
slabels |
labels for |
oprefix |
prefix for |
sprefix |
prefix for |
tname |
name for |
oname |
name for |
sname |
name for |
index |
the estimation number to return; "last" will return the last estimation results; otherwise, pass an integer indicating which estimation results to return. |
xpath |
xml path containing run results; if the default doesn't work,
consider using |
env |
internal use only. |
If run
and project
are supplied, the .xml
file is
assumed to be located in run.xml
, in directory run
off the project
directory. If file
is supplied,
run
and project
arguments are ignored.
This function requires that the xml2 package
be installed and loadable. If requireNamespace("xml2")
fails, an error will be generated.
nmxml
usually expects to find run results in the xpath called
.//nm:estimation
. Occasionally, the run results are not stored in
this namespace but no namespaces are found in the xml file. In this case,
the user can specify the xpath containing run results. Consider trying
.//estimation
as an alternative if the default fails.
A list with theta, omega and sigma elements, depending on what was requested.
nmext
if(requireNamespace("xml2")) {
proj <- system.file("nonmem", package = "mrgsolve")
mrgsolve:::nmxml(run = 1005, project = proj)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.