Learn R Programming

clustermq (version 0.8.6)

work_chunk: Function to process a chunk of calls

Description

Each chunk comes encapsulated in a data.frame

Usage

work_chunk(df, fun, const_args = 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_args

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)