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

pmx_plot_individual error: object 'isobserv' not found #235

Closed
tmss1 opened this issue May 23, 2022 · 3 comments · Fixed by #243
Closed

pmx_plot_individual error: object 'isobserv' not found #235

tmss1 opened this issue May 23, 2022 · 3 comments · Fixed by #243
Assignees
Labels
bug Something isn't working

Comments

@tmss1
Copy link

tmss1 commented May 23, 2022

Describe the bug
pmx_plot_individual fails with the error: Error in FUN(X[[i]], ...) : object 'isobserv' not found

Screenshots
image

Additional context
The issue only happens with this specific project dataset but I cannot understand why.
The issue is specific to pmx_plot_individual, other plots seem to work fine.
The same model using a previous version of this dataset containing less data with only the PK endpoint worked fine.
The new dataset, containing more endpoints, was filtered to include only the PK endpoint (as in the previous dataset) but with some additional data points.
The issue persists whether the dataset was filtered inside or outside Monolix.

@tynsci tynsci added the bug Something isn't working label May 26, 2022
@mattfidler
Copy link
Collaborator

Is there any way to add a minimally reproducible example here?

@mattfidler mattfidler linked a pull request May 27, 2022 that will close this issue
@mattfidler
Copy link
Collaborator

Hi @tmss1

I am unclear why this is happening, but by reading the code isobserv is a calculated variable. I have added a fallback of isobserv to TRUE in the dataset.

While it would be better to get a small reproducible example, perhaps this default value would work in your situation.

You can try by:

remotes::install_github("ggPMXdevelopment/ggPMX", ref="235-pmx_plot_individual-error-object-isobserv-not-found")

Depending on your environment you may have to create a local library and then use:

new_lib <- tempfile()
dir.create(new_lib)
with_libpaths(new_lib, {
remotes::install_github("ggPMXdevelopment/ggPMX", ref="235-pmx_plot_individual-error-object-isobserv-not-found")
library(ggPMX)
}, action="prepend")

Then you can see if it works for this project

@mattfidler
Copy link
Collaborator

Fixed in e8a540f but don't have a test ☹️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants