nlmixr2 / babelmixr2

The goal of babelmixr2 is to interface nlmixr2 with other pharmacometric tools
https://nlmixr2.github.io/babelmixr2/
8 stars 1 forks source link

Invalid `.cov` subscripts for Monolix #27

Closed billdenney closed 2 years ago

billdenney commented 2 years ago

When running this test:

https://github.com/nlmixr2/babelmixr2/blob/5adebcf375d6ef6331940d2d6fe4d16d223c3af4/tests/testthat/test-monolix-read.R#L56-L63

I get this error:

Error in .cov[.n, .n] : subscript out of bounds
Error: subscript out of bounds

It comes from here:

https://github.com/nlmixr2/babelmixr2/blob/5adebcf375d6ef6331940d2d6fe4d16d223c3af4/R/monolixReadData.R#L417-L420

The issue is that .muRef is NULL which comes from the fact that x$getSplitMuModel is NULL just above that.

I don't readily see where x$getSplitMuModel is supposed to come from.

mattfidler commented 2 years ago

It comes from the .ui