Using mlxR requires to install first the Monolix Suite from here

mlxR 4.2 is compatible with the Monolix Suites 2019R1 and 2019R2 (both recommended), 2018R2 and 2018R1.

When mlxR 4.2 is used with the Monolix Suite 2019R1or 2019R2, it is necessary to install the R package lixoftConnectors. By default, the command line for installing lixoftConnectors is:

# for Windows OS
                 repos = NULL, type="source") 

# for MAC OS
                 repos = NULL, type="source") 

Note that the lixoftConnectors package requires the RJSONIO package which can be installed from CRAN:


Look at the installation procedure for more details.

Install mlxR

You can either

        - install mlxR 4.2 from CRAN:


        - install the development version of mlxR from GitHub:


See the release notes for more details on the current versions of mlxR on CRAN and GitHub.

Using mlxR when Monolix 2020 is installed

Monolix has evolved a lot in the 2020 version, and the Lixoft connectors also. As a consequence, mlxR is not compatible with Monolix 2020R1, but a new R package is available on the CRAN which is compatible with Monolix 2020R1: RsSimulx

You need Monolix <= 2019R2 if you want to use mlxR. It’s not a problem since you can have both the 2019 and the 2020 versions installed on the same machine.

Assume that you have installed Monolix 2020R1 and Monolix2019R2 on your machine. Assume that you have installed lixoftConnectors (2020) package in the default library. Then, the solution is to keep mlxR linking to the 2019 version of Monolix and use the 2019 connectors:

monolix2019R2.path <-  "C:/ProgramData/Lixoft/MonolixSuite2019R2"
LC2019 <- file.path( monolix2019R2.path, "connectors/lixoftConnectors.tar.gz")
install.packages(LC2019, lib= monolix2019R2.path , repos = NULL, type = "source")
library(lixoftConnectors, lib.loc = monolix2019R2.path )
initMlxR(path = monolix2019R2.path)   #(adapt the path if necessary).

Download the demo examples

Download the R scripts and Mlxtran codes used for the user guide and the case studies: