Skip to content
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

SCM Example Fails in CI #47

Open
billdenney opened this issue Jan 10, 2023 · 1 comment
Open

SCM Example Fails in CI #47

billdenney opened this issue Jan 10, 2023 · 1 comment

Comments

@billdenney
Copy link
Contributor

The following error intermittently comes up in CI (I cannot replicate it locally):

Error in rxState(x) : 
    Evaluation error: Evaluation error: INTEGER() can only be applied to a 'integer', not a 'NULL'..
  [1] "error fitting the model for the covariate "
  <simpleError: Evaluation error: Evaluation error: INTEGER() can only be applied to a 'integer', not a 'NULL'..>
  Error in if (dObjf < 0) { : argument is of length zero

The problem R code appears to be here, but the underlying issue appears to be an issue on the C side:

nlmixr2extra/R/SCM.R

Lines 277 to 284 in c13dc98

dObjf <- fit$objf - x$objf
dof <- length(x$finalUiEnv$ini$est) - length(fit$finalUiEnv$ini$est)
if (dObjf < 0) {
pchisqr <- 1 - pchisq(-dObjf, df = dof)
}
else {
pchisqr <- 1
}

@mattfidler, any ideas?

@mattfidler
Copy link
Member

Nope. Not to why.

But my guess is if we run this sort of like ShinyMixR in a separate R session it may alleviate this problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants