Learn R Programming

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

future (version 1.11.1.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(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

282,433

Version

1.11.1.1

License

LGPL (>= 2.1)

Issues

Pull Requests

Stars

Forks

Maintainer

Henrik Bengtsson

Last Published

January 26th, 2019

Functions in future (1.11.1.1)

cluster

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

Get first or all references of an R object
%conditions%

Control whether standard output should be captured or not
remote

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

Gets all futures in an object
getGlobalsAndPackages

Retrieves global variables of an expression and their associated packages
MultiprocessFuture-class

An multiprocess future is a future whose value will be resolved asynchronously in a parallel process
requestCore

Request a core for multicore processing
backtrace

Back trace the expressions evaluated when an error was caught
find_rshcmd

Search for SSH clients on the current system
multisession

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

Outputs details on the current R session
getExpression

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

Create a PSOCK cluster of R workers for parallel processing
autoStopCluster

Automatically stop a cluster when garbage collected
FutureCondition

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

Get number of available cores on current machine
future.options

Options used for futures
futureOf

Get the future of a future variable
future

Create a future
%lazy%

Control lazy / eager evaluation for a future assignment
%plan%

Use a specific plan for a future assignment
%tweak%

Temporarily tweaks the arguments of the current strategy
mandelbrot

Mandelbrot convergence counts
makeClusterMPI

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

Plan how to resolve a future
%seed%

Set random seed for future assignment
.length

Gets the length of an object without dispatching
%globals%

Specify globals and packages for a future assignment
%label%

Specify label for a future assignment
%stdout%

Control whether standard output should be captured or not
resolve

Resolve one or more futures synchronously
nbrOfWorkers

Gets the number of workers available
resolved

Check whether a future is resolved or not
usedCores

Get number of cores currently used
value.Future

The value of a future
supportsMulticore

Check whether multicore processing is supported or not
tweak

Tweaks a future function by adjusting its default arguments
nullcon

Creates a connection to the system null device
sequential

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

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

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

Check whether a process PID exists or not
values

Gets all values in an object
result.Future

Get the results of a resolved future
run.Future

Run a future
FutureResult

Results from resolving a future
Future-class

A future represents a value that will be available at some point in the future
as.cluster

Coerce an object to a cluster object
UniprocessFuture-class

An uniprocess future is a future whose value will be resolved synchronously in the current process
MulticoreFuture-class

An multicore future is a future whose value will be resolved asynchronously in a parallel process
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
ConstantFuture-class

A future with a constant value
availableWorkers

Get set of available workers