-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nlmixr package - saem and nlme function issue #421
Comments
Hi, Adding up to the above issue, when we try to run our code we see the following error:
── stderr output ───────────────────────────────────────────────────────────────────────── Error: Error building SAEM model I guess this would help you out. Please let me know if you need any more information. Best Regards, |
Can you try this: library(nlmixr)
one.compartment <- function() {
ini({
tka <- 0.45 # Log Ka
tcl <- 1 # Log Cl
tv <- 3.45 # Log V
eta.ka ~ 0.6
eta.cl ~ 0.3
eta.v ~ 0.1
add.sd <- 0.7
})
model({
ka <- exp(tka + eta.ka)
cl <- exp(tcl + eta.cl)
v <- exp(tv + eta.v)
d/dt(depot) = -ka * depot
d/dt(center) = ka * depot - cl / v * center
cp = center / v
cp ~ add(add.sd)
})
}
fit2 <- nlmixr(one.compartment, theo_sd, est="saem", control=list(print=0)) It could say what is going wrong. |
Hi Matt, Thanks for your kind response. I receive the same error what i posted few minutes earlier. Thanks, |
Hm. For some reason our messages crossed. It seems like a platform problem. In your compiler If you wish you can still run models in |
That's awesome! Let me try running the models using focei, however it would be very much appreciated if you could share the procedure on installing the development version of nlmixr package. Thanks, Best Regards, |
The instructions are here; |
Hi Matt, Thank you very much for sharing the information. I have installed all the prerequisites and the necessary packages as per the procedure. When i try to run my code and yours i face the following error. Issue: Could you please let me know how to overcome this? Best Regards, |
Probably library(backports) Would fix this. I will have to add a deparse1 in the relavant places. |
or simply use r 4.0 |
Hi Matt, Thank you very much! The library(backports) actually worked. Now i am able to run my code without any error. |
Thanks. I'm hoping to release soon. |
Hi,
I have installed the nlmixr package. However when i try to run a code based on the package, i receive error on saem.
Also, i tested the package installation using the file provided by the nlmixr package developer. "https://raw.githubusercontent.com/nlmixrdevelopment/nlmixr/master/build/test_install.R".
When i source the above file, i receive the below error:
source("test_install.R")
Correct R version: Yes, R version 3.6.0 (2019-04-26)
RxODE installed: Yes
Python installed: Yes, Python 3.6.8
sympy installed: Yes
devtools package installed: Yes
RxODE package installed: Yes
Rtools installed or not needed: Yes
SnakeCharmR package installed: Yes
units package installed: Yes
nlmixr package installed: Yes
xpose.nlmixr package installed: Yes
shinyMixR package installed: Yes
Running nlme
Running saem
Error : Error building SAEM model
Could you please let me know what is the exact issue and how could i resolve it?
Best Regards,
Thomas
The text was updated successfully, but these errors were encountered: