work_chunk: Function to process a chunk of calls

View source: R/work_chunk.r

work_chunkR Documentation

Function to process a chunk of calls

Description

Each chunk comes encapsulated in a data.frame

Usage

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 Nov. 21, 2023, 5:06 p.m.