callr: callr futures

View source: R/CallrFutureBackend-class.R

callrR Documentation

callr futures

Description

WARNING: This function must never be called. It may only be used with future::plan()

Usage

callr(
  ...,
  workers = availableCores(),
  supervise = FALSE,
  envir = parent.frame()
)

Arguments

workers

The number of processes to be available for concurrent callr futures.

supervise

(optional) Argument passed to callr::r_bg().

envir

The environment from where global objects should be identified.

...

Additional arguments passed to Future().

Details

A callr future is an asynchronous multiprocess future that will be evaluated in a background R session.

callr futures rely on the callr package, which is supported on all operating systems.

Unlike other future backends, callr futures explicitly discard the standard error (stderr) produced while evaluating the future. This is by design in order to avoid 'callr'/'processx' processes from stalling. Note that messages, warnings, and other conditions are still captured and relayed as usual.

Value

An object of class CallrFuture.


future.callr documentation built on Oct. 12, 2026, 1:08 a.m.