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

Plotting models without compartments fails #33

Open
billdenney opened this issue Aug 29, 2023 · 0 comments
Open

Plotting models without compartments fails #33

billdenney opened this issue Aug 29, 2023 · 0 comments

Comments

@billdenney
Copy link
Collaborator

The model below, mod_current is similar to the model in nlmixr2/rxode2ll#6.

> p_mod_current <- plot(mod_current)
Error in `$<-.data.frame`(`*tmp*`, "CMT", value = 1L) : 
  replacement has 1 row, data has 0
> traceback()
6: stop(sprintf(ngettext(N, "replacement has %d row, data has %d", 
       "replacement has %d rows, data has %d"), N, nrows), domain = NA)
5: `$<-.data.frame`(`*tmp*`, "CMT", value = structure(1L, levels = "All Data", class = "factor"))
4: `$<-`(`*tmp*`, "CMT", value = structure(1L, levels = "All Data", class = "factor"))
3: .setupPlotData(x)
2: plot.nlmixr2FitData(mod_current)
1: plot(mod_current)
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

1 participant