Skip to contents

[Stable]

Loads all the data from an NPAG or IT2B run.

Usage

PM_load(run, file, remote = F, server_address)

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.

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, since run is missing. If file 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 (if run is not specified) or the run/outputs folder, if run is provided.

remote

Default is FALSE. Set to TRUE 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 to TRUE in NPrun.

Value

An R6 PM_result.

Author

Michael Neely and Julian Otalvaro