Skip to content

Style suggestion #33

@n8thangreen

Description

@n8thangreen

sim <- do.call(paste0("make_sim_",fit$method),

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions