execute_mmdlModel {Certara.RsNLME.ModelExecutor} | R Documentation |
Run Model Executor from Pirana
Description
Used by Pirana internally to launch the Model Executor Shiny GUI.
Usage
execute_mmdlModel(metamodelFile, hostsfile)
Arguments
metamodelFile |
Path to existing metamodel file |
hostsfile |
Path to hosts definitions file |
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
)
}
[Package Certara.RsNLME.ModelExecutor version 3.0.2 Index]