Skip to contents

Used by Pirana internally to launch the Model Executor Shiny GUI.

Usage

execute_mmdlModel(metamodelFile, hostsfile)

Arguments

metamodelFile

Path to existing metamodel file .mmdl.

hostsfile

Path to hosts definitions file .json. Note, this file is automatically generated by Pirana given the user provided NLME host setup in Pirana settings.

Value

Deploys a Shiny app to execute a Certara.RsNLME model. Returns NULL if assigned to an object.

Examples

if (interactive()) {
# Get existing mmdl file
mmdl_file <- system.file("vignettesdata/OneCpt_IVInfusion.mmdl",
  package = "Certara.RsNLME")

# Create hosts file json. Note, hosts file is automatically created by Pirana.
hosts_file <- tempfile(pattern = "hosts", fileext = ".json")
jsonlite::write_json(
  list(
    list(profile_name = "examplehost", cores_number = 1, os = "Windows", parallel_mode="None")),
  auto_unbox = TRUE, 
  path = hosts_file
  ) 
execute_mmdlModel(
  mmdl_file, 
  hosts_file
  )
}