Run Model Executor from Pirana
execute_mmdlModel.Rd
Used by Pirana internally to launch the Model Executor Shiny GUI.
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
)
}