Skip to content

Commit

Permalink
use more robust bind_rows
Browse files Browse the repository at this point in the history
  • Loading branch information
philchalmers committed Jul 24, 2024
1 parent d5ca261 commit 085222e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions R/SimCollect.R
Original file line number Diff line number Diff line change
Expand Up @@ -306,10 +306,10 @@ SimCollect <- function(files = NULL, filename = NULL,
} else {
out <- do.call(rbind, full_out)
if(has_stored_results)
extra_info1$stored_results <- do.call(rbind,
lapply(full_out, \(x) attr(x, 'extra_info')$stored_results))
errors_info <- dplyr::as_tibble(do.call(rbind, errors_info))
warnings_info <- dplyr::as_tibble(do.call(rbind, warnings_info))
extra_info1$stored_results <- dplyr::bind_rows(
lapply(full_out, \(x) attr(x, 'extra_info')$stored_results))
errors_info <- dplyr::bind_rows(errors_info)
warnings_info <- dplyr::bind_rows(warnings_info)
}
if(check.only){
if(is.null(target.reps)) target.reps <- max(out$REPLICATIONS)
Expand Down

0 comments on commit 085222e

Please sign in to comment.