You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks @n8thangreen. As I understand, your suggested changes are purely cosmetics, though? So you'd rather have the two separate lines defining the call and args and then the do.call command? If so, that can be easily arranged --- still in the process of getting the devel version on CRAN (should be shortly), then I can change this too.
Did you see this in other places? I think I was using do.call relatively extensively in this release, which works fine for me, TBH, but perhaps can be made clearer for a contributor to look at...
survHE/R/make.surv.R
Line 98 in f96cd9d
Hi, I'm finding these compound do.call() lines a bit hard to reason about. Can I suggest splitting them up e.g.
make_sim_fns <- paste0("make_sim_", fit$method)
make_sim_args <- list(m=m,t=t,X=X,nsim=nsim,newdata=newdata,dist=dist,data=data,
formula=fit$misc$formula,
summary_stat=summary_stat)
sim <- do.call(make_sim_fns, args = make_sim_args)
Thanks!
The text was updated successfully, but these errors were encountered: