Skip to contents

Execute RsNLME model from Shiny GUI.

Usage

modelExecutorUI(
  model,
  hosts,
  wd = getwd(),
  outputfile = "shiny_dirs.txt",
  metamodelFileName = "temp.mmdl",
  fromPirana = FALSE
)

Arguments

model

NLME PML model to execute.

hosts

Vector or single NlmeParallelHost to use in "Execute On" menu in GUI. If missing, only Local will be available.

wd

Working directory in which directories for each execution will be created. If missing, current working directory is used.

outputfile

File in which all execution directories will be listed.

metamodelFileName

Only applicable to Pirana run. Name of the metamodel file.

fromPirana

Logical; set to TRUE when launching app from Pirana.

Examples

if (FALSE) { # \dontrun{
model <- pkmodel(parameterization = "Clearance",
absorption = "Intravenous",
numCompartments = 2,
data = pkData,
ID = "Subject",
A1 = "Amount",
Time = "Act_Time",
CObs = "Conc",
modelName = "pk_model")

host <- NlmeParallelHost(sharedDirectory=Sys.getenv("NLME_ROOT_DIRECTORY"),
installationDirectory = Sys.getenv("INSTALLDIR"),
parallelMethod=NlmeParallelMethod("LOCAL_MPI"),
hostName="Local_MPI",
numCores=4)


modelExecutorUI(model, host = host)

} # }