Open bfreed3 opened 3 years ago
Monolix has evolved a lot in the 2020 version, and the Lixoft connectors also. As a consequence, mlxR is not compatible with Monolix 2020R1. Nevertheless, 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 the lixoftConnectors (2020) in the default library. Then, the solution is to keep mlxR linking to the 2019 version of Monolix and use the 2019 connectors:
instance "C:/ProgramData/Lixoft/MonolixSuite2019R2":
monolix2019R2.path <- "C:/ProgramData/Lixoft/MonolixSuite2019R2" install.packages(file.path( monolix2019R2.path, "connectors/lixoftConnectors.tar.gz"), lib= monolix2019R2.path , repos = NULL, type = "source")
when you want to use mlxR, load the lixoftConnectors 2019, load the mlxR
library and link it to Monolix2019R2 library(lixoftConnectors, lib.loc = monolix2019R2.path ) library(mlxR) initMlxR(path = monolix2019R2.path) #(adapt the path if necessary).
Le jeu. 14 janv. 2021 à 19:12, bfreed3 notifications@github.com a écrit :
I just upgraded my MacOS to Catalina and to MonolixSuite2020R1. I kept my install of 2019R2 as well. Running R 4.0.3, mlxR 4.1.3. I have a copy of the standard model "oral1_2cpt_kaClV1QV2.txt" in the same execution directory. Just trying to simulate a simple 2comp model, and keep getting the error [ERROR] The software "mlxlibrary" is unknown. Can this error be resolved ? Below is my code: ` library(mlxR) parameter <- c( ka = 0.23, Cl = 10, V1 = 5, Q = 0.6, V2 = 8 )
Cc <- list(name='Cc',time=seq(from=0, to=24, by=0.01))
adm <- list(time=c(0), amount=c(30000))
sim <- simulx(model="oral1_2cpt_kaClV1QV2.txt", parameter = parameter, output = Cc, treatment = adm)`
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/MarcLavielle/mlxR/issues/33, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACO7FORRM3IZGZC3I53XHSDSZ4XYLANCNFSM4WC2IY6A .
-- Marc Lavielle Research Director at Inria Head of the Xpop team
address:
CMAP, École polytechnique91128 Palaiseau Cedex
France Tel: (33) 1 69 33 46 00 (33) 6 37 31 93 05
Marc.Lavielle@inria.fr http://www.cmap.polytechnique.fr/~lavielle
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""
Thanks, I will give this a try. Please confirm: monolix2019R2.path <- "/Applications/MonolixSuite2019R2.app/Contents/Resources/monolixSuite" for mac OS?
I just upgraded my MacOS to Catalina and to MonolixSuite2020R1. I kept my install of 2019R2 as well. Running R 4.0.3, mlxR 4.1.3. I have a copy of the standard model "oral1_2cpt_kaClV1QV2.txt" in the same execution directory. Just trying to simulate a simple 2comp model, and keep getting the error [ERROR] The software "mlxlibrary" is unknown. Can this error be resolved ? Below is my code: ` library(mlxR) parameter <- c( ka = 0.23, Cl = 10, V1 = 5, Q = 0.6, V2 = 8 )
Cc <- list(name='Cc',time=seq(from=0, to=24, by=0.01))
adm <- list(time=c(0), amount=c(30000))
sim <- simulx(model="oral1_2cpt_kaClV1QV2.txt", parameter = parameter, output = Cc, treatment = adm)`