Learn R Programming

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

future (version 1.17.0)

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(multiprocess)`. 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

320,568

Version

1.17.0

License

LGPL (>= 2.1)

Issues

Pull Requests

Stars

Forks

Maintainer

Henrik Bengtsson

Last Published

April 18th, 2020

Functions in future (1.17.0)

FutureCondition

A condition (message, warning, or error) that occurred while orchestrating a future
future.options

Options used for futures
future

Create a future
cluster

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

Get the future of a future variable
getExpression

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

Search for SSH clients on the current system
futures

Get all futures in a container
availableCores

Get number of available cores on current machine
%globals%

Specify globals and packages for a future assignment
%stdout%

Control whether standard output should be captured or not
%conditions%

Control whether standard output should be captured or not
%tweak%

Temporarily tweaks the arguments of the current strategy
autoStopCluster

Automatically stop a cluster when garbage collected
%label%

Specify label for a future assignment
plan

Plan how to resolve a future
clusterExportSticky

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

Create a Message Passing Interface (MPI) cluster of R workers for parallel processing
makeClusterPSOCK

Create a PSOCK cluster of R workers for parallel processing
make_rng_seeds

Produce Reproducible Seeds for Parallel Random Number Generation
tweak

Tweak a future function by adjusting its default arguments
.length

Gets the length of an object without dispatching
nullcon

Creates a connection to the system null device
find_references

Get first or all references of an R object
backtrace

Back trace the expressions evaluated when an error was caught
availableWorkers

Get set of available workers
supportsMulticore

Check whether multicore/forked processing is supported or not
%plan%

Use a specific plan for a future assignment
%lazy%

Control lazy / eager evaluation for a future assignment
value.Future

The value of a future
mandelbrot

Mandelbrot convergence counts
getGlobalsAndPackages

Retrieves global variables of an expression and their associated packages
pid_exists

Check whether a process PID exists or not
resolve

Resolve one or more futures synchronously
usedCores

Get number of cores currently used
sticky_globals

Place a sticky-globals environment immediately after the global environment
nbrOfWorkers

Get the number of workers available
resolved

Check whether a future is resolved or not
multisession

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

Get all values in a container
%seed%

Set random seed for future assignment
resetWorkers

Free up active background workers
multicore

Create a multicore future whose value will be resolved asynchronously in a forked parallel process
result.Future

Get the results of a resolved future
run.Future

Run a future
sequential

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

Signals Captured Conditions
sessionDetails

Outputs details on the current R session
multiprocess

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

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

Request a core for multicore processing
MulticoreFuture-class

An multicore future is a future whose value will be resolved asynchronously in a parallel process
MultiprocessFuture-class

An multiprocess 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
as.cluster

Coerce an object to a cluster object
Future-class

A future represents a value that will be available at some point in the future
FutureGlobals

A representation of a set of globals used with futures
ClusterFuture-class

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

Results from resolving a future
ConstantFuture-class

A future with a constant value