Skip to content

Commit

Permalink
move unlist for single core
Browse files Browse the repository at this point in the history
  • Loading branch information
mem48 committed Sep 11, 2024
1 parent b8961d6 commit 86cce8c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/atoc_export.R
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ makeCalendar <- function(schedule, ncores = 1) {
.f = checkrows,
.progress = TRUE)
future::plan(future::sequential)
keep <- unlist(keep)


# cl <- parallel::makeCluster(ncores)
# parallel::clusterEvalQ(cl, {
Expand All @@ -458,6 +458,7 @@ makeCalendar <- function(schedule, ncores = 1) {
} else {
keep <- purrr::map(res.calendar.days, checkrows, .progress = TRUE)
}
keep <- unlist(keep)

res.calendar <- res.calendar[keep, ]

Expand Down

0 comments on commit 86cce8c

Please sign in to comment.