ronkeizer / vpc

R library to create visual predictive checks (VPC)
Other
36 stars 20 forks source link

`split_chain` issue #70

Closed mattfidler closed 3 years ago

mattfidler commented 3 years ago

Hi Ron,

When preparing nlmixr for submission I noticed the following from the vpc package:

> p1 <- nlmixr::vpc(fit, show=list(obs_dv=TRUE))
Compiling VPC model...done
done (0.16 sec)
Error in split_chain(match.call(), env = env) : 
  could not find function "split_chain"
> traceback(max.lines=2)
6: sim %>% dplyr::group_by(strat, sim, bin) %>% dplyr::summarise(q5 = quantile(dv, 
       pi[1]), q50 = quantile(dv, 0.5), q95 = quantile(dv, pi[2]), 
    ...
5: (function (sim = NULL, obs = NULL, psn_folder = NULL, bins = "jenks", 
       n_bins = "auto", bin_mid = "mean", obs_cols = NULL, sim_cols = NULL, 
    ...
4: do.call(getFromNamespace(vpcn, "vpc"), c(sim, call), envir = parent.frame(1)) at vpc.ui.R#209
3: vpc_ui(fit = sim, ...) at vpc.ui.R#252
2: vpc.nlmixrSaem(fit, show = list(obs_dv = TRUE)) at vpc.R#54
1: nlmixr::vpc(fit, show = list(obs_dv = TRUE))

This comes from upgrading magrittr but not reinstalling vpc.

Once I re-installed vpc after magrittr was upgraded, this error went away.

I thought you should be aware in case others have the same issue