meghapsimatrix / simhelpers

Helper package to assist in running simulation studies
10 stars 3 forks source link

Replacement for `purrr::rerun()`, which has been deprecated. #25

Closed jepusto closed 1 month ago

jepusto commented 1 month ago

Per request from @lmiratrix, added a replacement for purrr::rerun(). It works identically to base R replicate() but has an option to tidy up the output afterwards using the equivalent of dplyr::bind_rows().

@lmiratrix and @meghapsimatrix what do you think of the function name? I didn't want to create name conflicts with rerun() or replicate() and repeat is a reserved control statement.

meghapsimatrix commented 1 month ago

The name you have sounds good to me. Also, I think the skeleton function and the vignettes use map_dfr() and not rerun(). It used to be rerun().