model_run | R Documentation |
Executes PRISM model
model_run( model_name = NULL, model_input = NULL, api_key = NULL, server = NULL, async = FALSE, email_address = NULL )
model_name |
name of the model |
model_input |
required custom parameters for current model |
api_key |
API key |
server |
server address. Defaults to the Peer Models Network PRSIM repository. |
async |
should the model be called in async mode? |
email_address |
async results will be emailed to this address |
0 for success and 1 for error
## Not run: sample_input <- get_default_input(model_name = "epic", api_key = "YOUR_API_KEY") sample_input$global_parameters.time_horizon <- 15 model_run ("epic", model_input = sample_input) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.