superposition(conc_obj, tau = 24, auc.type = "AUClast") with the default n.tau = Inf hangs indefinitely when any subject's last measurable concentration falls before tau (2 of 12 Theoph subjects): with AUClast-type extrapolation the tail contributes zeros, zeros persist across iterations, and the any(ret$conc %in% 0) guard in R/superposition.R resets the steady-state tolerance every iteration, so convergence is never declared. Reproduced on 0.12.1.9000. A finite n.tau avoids it.
Suggest either excluding structural zeros from the convergence check or capping iterations with an informative error.
superposition(conc_obj, tau = 24, auc.type = "AUClast")with the defaultn.tau = Infhangs indefinitely when any subject's last measurable concentration falls before tau (2 of 12 Theoph subjects): with AUClast-type extrapolation the tail contributes zeros, zeros persist across iterations, and theany(ret$conc %in% 0)guard inR/superposition.Rresets the steady-state tolerance every iteration, so convergence is never declared. Reproduced on 0.12.1.9000. A finiten.tauavoids it.Suggest either excluding structural zeros from the convergence check or capping iterations with an informative error.