Loads all the data from an NPAG or IT2B run.
Arguments
- run
The numerical value of the folder number containing the run results. Loading results of a prior standard run in folder "1" are as simple as
run1 <- PM_load(1)
. There is no default value for this, and if missing, Pmetrics will only search the current working directory for output files.- remote
Default is
FALSE
. Set toTRUE
if loading results of an NPAG run on remote server. See NPrun. Currently remote runs are not configured for IT2B or the Simulator.- server_address
If missing, will use the default server address returned by getPMoptions(). Pmetrics will prompt the user to set this address the first time the
remote
argument is set toTRUE
in NPrun.- file
Optional name of an .Rdata file created by running the
$save
method for a PM_result object. For example,run2 <- PM_load(2, "other.Rdata")
will look in the run 2 folder outputs for a file named "other.Rdata".PM_load(file = "other.Rdata")
will look in the current working directory, sincerun
is missing. Iffile
is missing, Pmetrics will attempt to find a "PMout.Rdata" or the older "NPAGout.Rdata" or "IT2Bout.Rdata" files in either the current working directory (ifrun
is not specified) or therun/outputs
folder, ifrun
is provided.
Value
An R6 PM_result.