connect_to_model.RdChecks to see if model is available in PRISM
connect_to_model( model_name, api_key = "", local_server = FALSE, bypass_router = FALSE, async = FALSE )
| model_name | name of the model |
|---|---|
| api_key | API key |
| local_server | whether or not the call should be directed to the server on localhost. Default is FALSE. |
| bypass_router | bypass server API router, for debugging purposes |
| async | should the model be called in async mode? |
0 for success and 1 for error