work_chunk: Function to process a chunk of calls

Description Usage Arguments Value

View source: R/work_chunk.r

Description

Each chunk comes encapsulated in a data.frame

Usage

1
2
3
4
5
6
7
8
work_chunk(
  df,
  fun,
  const = list(),
  rettype = "list",
  common_seed = NULL,
  progress = FALSE
)

Arguments

df

A data.frame with call IDs as rownames and arguments as columns

fun

The function to call

const

Constant arguments passed to each call

rettype

Return type of function

common_seed

A seed offset common to all function calls

progress

Logical indicated whether to display a progress bar

Value

A list of call results (or try-error if they failed)


clustermq documentation built on March 26, 2020, 9:17 p.m.