Closed john-harrold closed 1 month ago
That is because it isn't supported because f(depot)
is an equation. More parsing could probably support this particular expression, though I am not likely to get to this soon.
The error could be a bit more clear, I suppose.
Is there a way I can detect it's presence in rx_obj above?
Nope.
At least not as the nlmixr2
/rxode2
interface is currently written.
Can I add that to the props? I know this isn't the place to request it :)
That is where it would likely go, though I believe I wouldn't support this directly since it is too much of a edge case for properties, rather I would support what properties (aka initial condition, f, rate, dur, alag) are present in the model and for what state).
Then you could use modelExtract()
to parse this out yourself. I would say that if this changes, it wouldn't work so this idea is fragile. I think you should base it on if the model translates instead. But that is just my thoughts right now.
There are likely cases where a model won't import from nonmem or export to nonmem, and the same is true for monolix.
I'm sorry, you would rather support f, but isn't this f?
Oh I see. Can you add what properties are supported? I can easily use that.
I will add what properties are defined by the model.
For example in this model you would have some way of figuring out that f(depot)
is in the model.
Awesome. Thank you.
I'm testing the models in the model library (
nlmixr2lib
) trying to convert them to different formats. I'm having trouble converting this one to monolix.Created on 2024-08-20 with reprex v2.1.1