Skip to content

Commit

Permalink
workaround cran NOTE of ::: use
Browse files Browse the repository at this point in the history
  • Loading branch information
mschubert committed Sep 23, 2023
1 parent 9f82bd9 commit 355bc48
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions R/master.r
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ master = function(pool, iter, rettype="list", fail_on_error=TRUE,
n_warnings = 0
shutdown = FALSE
kill_workers = FALSE
penv = pool$env()
penv = pool$env(work_chunk=work_chunk)
obj_size = structure(sum(penv$size), class="object_size")
obj_size_fmt = format(obj_size, big.mark=",", units="auto")

Expand Down Expand Up @@ -89,8 +89,8 @@ master = function(pool, iter, rettype="list", fail_on_error=TRUE,
if (submit_index[1] <= n_calls) {
# if we have work, send it to the worker
submit_index = submit_index[submit_index <= n_calls]
pool$send(clustermq:::work_chunk(chunk, fun=fun, const=const,
rettype=rettype, common_seed=common_seed), chunk=chunk(iter, submit_index))
pool$send(work_chunk(chunk, fun=fun, const=const, rettype=rettype,
common_seed=common_seed), chunk=chunk(iter, submit_index))
jobs_running = jobs_running + length(submit_index)
submit_index = submit_index + chunk_size

Expand Down

0 comments on commit 355bc48

Please sign in to comment.