Learn R Programming

Certara.RsNLME.ModelExecutor (version 3.0.2)

execute_mmdlModel: Run Model Executor from Pirana

Description

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

Usage

execute_mmdlModel(metamodelFile, hostsfile)

Value

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

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.

Examples

Run this code
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
  )
}

Run the code above in your browser using DataLab