par_lapply: Parallelise Lapply

View source: R/parallel.R

par_lapplyR Documentation

Parallelise Lapply

Description

Simple wrapper around lapply and parallel::clusterApplyLB to abstract away the logic of deciding which one to use

Usage

par_lapply(cl, fun, x, ...)

Arguments

cl

Cluster created by parallel::makeCluster() or NULL

fun

Function to be run

x

object to be looped over

...

extra arguements passed to fun


insightsengineering/rbmi documentation built on Feb. 28, 2025, 3:34 a.m.