Simulx API

On the use of the R-functions

We now propose to use Simulx via R-functions. The package lixoftConnectors provides access to the project exactly in the same way as you would do with the interface. All the installation guidelines and initialization procedure can be found here. All the functions are described below.

Description of the functions concerning the element definition

Description of the functions concerning the project management

  • getStructuralModel: Get the model file for the structural model used in the current project.
  • loadProject: Load a project by parsing the Mlxtran-formated file whose path has been given as an input.
  • newProject: Create a new empty project providing model and data specification.
  • saveProject: Save the current project as an Mlxtran-formated file.

Description of the functions concerning the project management specific to Simulx

Description of the functions concerning the results

Description of the functions concerning the scenario

Description of the functions concerning the scenario specific to Simulx

Description of the functions concerning the commons-settings

Examples

 

Handling of warning/error/info messages

Error, warning and info messages from Monolix are displayed in the R console when performing actions on a monolix project. They can be hidden via the R options. Set lixoft_notificationOptions$errors, lixoft_notificationOptions$warnings and lixoft_notificationOptions$info to 1 or 0 to respectively hide or show the messages.

Example

op = options()
op$lixoft_notificationOptions$warnings = 1   #hide the warning messages
options(op)
modal close image