Learn R Programming

⚠️There's a newer version (1.34.0) of this package.Take me there.

future (version 1.22.1)

Unified Parallel and Distributed Processing in R for Everyone

Description

The purpose of this package is to provide a lightweight and unified Future API for sequential and parallel processing of R expression via futures. The simplest way to evaluate an expression in parallel is to use `x %<-% { expression }` with `plan(multisession)`. This package implements sequential, multicore, multisession, and cluster futures. With these, R expressions can be evaluated on the local machine, in parallel a set of local machines, or distributed on a mix of local and remote machines. Extensions to this package implement additional backends for processing futures via compute cluster schedulers, etc. Because of its unified API, there is no need to modify any code in order switch from sequential on the local machine to, say, distributed processing on a remote compute cluster. Another strength of this package is that global variables and functions are automatically identified and exported as needed, making it straightforward to tweak existing code to make use of futures.

Copy Link

Version

Install

install.packages('future')

Monthly Downloads

220,923

Version

1.22.1

License

LGPL (>= 2.1)

Issues

Pull Requests

Stars

Forks

Last Published

August 25th, 2021

Functions in future (1.22.1)

as_lecyer_cmrg_seed

Get a L'Ecuyer-CMRG seed either from an input seed or the current RNG state
ConstantFuture-class

A future with a constant value
Future-class

A future represents a value that will be available at some point in the future
MulticoreFuture-class

A multicore future is a future whose value will be resolved asynchronously in a parallel process
UniprocessFuture-class

An uniprocess future is a future whose value will be resolved synchronously in the current process
FutureGlobals

A representation of a set of globals used with futures
FutureResult

Results from resolving a future
futureOf

Get the future of a future variable
FutureCondition

A condition (message, warning, or error) that occurred while orchestrating a future
MultiprocessFuture-class

A multiprocess future is a future whose value will be resolved asynchronously in a parallel process
ClusterFuture-class

A cluster future is a future whose value will be resolved asynchronously in a parallel process
clusterExportSticky

Export globals to the sticky-globals environment of the cluster nodes
cluster

Create a cluster future whose value will be resolved asynchronously in a parallel process
%plan%

Use a specific plan for a future assignment
backtrace

Back trace the expressions evaluated when an error was caught
%lazy%

Control lazy / eager evaluation for a future assignment
multicore

Create a multicore future whose value will be resolved asynchronously in a forked parallel process
mandelbrot

Mandelbrot convergence counts
%seed%

Set random seed for future assignment
%stdout%

Control whether standard output should be captured or not
futureSessionInfo

Get session information specific to the future framework
%tweak%

Temporarily tweaks the arguments of the current strategy
make_rng_seeds

Produce Reproducible Seeds for Parallel Random Number Generation
futures

Get all futures in a container
nbrOfWorkers

Get the number of workers available
future

Create a future
find_references

Get the first or all references of an R object
nullcon

Creates a connection to the system null device
%globals%

Specify globals and packages for a future assignment
future.options

Options used for futures
%label%

Specify label for a future assignment
getExpression

Inject code for the next type of future to use for nested futures
.length

Gets the length of an object without dispatching
remote

Create a remote future whose value will be resolved asynchronously in a remote process
readImmediateConditions

Read All 'immediateCondition' RDS Files
tweak

Tweak a future function by adjusting its default arguments
sticky_globals

Place a sticky-globals environment immediately after the global environment
result.Future

Get the results of a resolved future
run.Future

Run a future
re-exports

Functions Moved to 'parallelly'
resolved

Check whether a future is resolved or not
resolve

Resolve one or more futures synchronously
multiprocess

Create a multiprocess future whose value will be resolved asynchronously using multicore or a multisession evaluation
sessionDetails

Outputs details on the current R session
getGlobalsAndPackages

Retrieves global variables of an expression and their associated packages
requestCore

Request a core for multicore processing
%conditions%

Control whether standard output should be captured or not
signalConditions

Signals Captured Conditions
resetWorkers

Free up active background workers
value

The value of a future or the values of all elements in a container
plan

Plan how to resolve a future
pid_exists

Check whether a process PID exists or not
usedCores

Get number of cores currently used
multisession

Create a multisession future whose value will be resolved asynchronously in a parallel R session
sequential

Create a sequential future whose value will be in the current R session
save_rds

Robustly Saves an Object to RDS File Atomically