Learn R Programming

parallelly (version 1.45.0)

Enhancing the 'parallel' Package

Description

Utility functions that enhance the 'parallel' package and support the built-in parallel backends of the 'future' package. For example, availableCores() gives the number of CPU cores available to your R process as given by the operating system, 'cgroups' and Linux containers, R options, and environment variables, including those set by job schedulers on high-performance compute clusters. If none is set, it will fall back to parallel::detectCores(). Another example is makeClusterPSOCK(), which is backward compatible with parallel::makePSOCKcluster() while doing a better job in setting up remote cluster workers without the need for configuring the firewall to do port-forwarding to your local computer.

Copy Link

Version

Install

install.packages('parallelly')

Monthly Downloads

394,558

Version

1.45.0

License

LGPL (>= 2.1)

Issues

Pull Requests

Stars

Forks

Maintainer

Henrik Bengtsson

Last Published

June 2nd, 2025

Functions in parallelly (1.45.0)

isForkedNode

Checks whether or not a Cluster Node Runs in a Forked Process
isNodeAlive

Check whether or not the cluster nodes are alive
killNode

Terminate one or more cluster nodes using process signaling
makeClusterSequential

Create a "parallel" cluster running sequentially in the current session
isLocalhostNode

Checks whether or not a Cluster Node Runs on Localhost
isConnectionValid

Checks if a Connection is Valid
makeClusterMPI

Create a Rich Message Passing Interface (MPI) Cluster of R Workers for Parallel Processing
pid_exists

Check whether a process PID exists or not
isForkedChild

Checks whether or not we are running in a forked child process
makeClusterPSOCK

Create a Rich PSOCK Cluster of R Workers for Parallel Processing
supportsMulticore

Check If Forked Processing ("multicore") is Supported
serializedSize

Calculate the size of an R object when it is serialized
zzz-parallelly.options

Options Used by the 'parallelly' Package
availableConnections

Number of Available and Free Connections
as.cluster

Coerce an Object to a Cluster Object
autoStopCluster

Automatically Stop a Cluster when Garbage Collected
availableCores

Get Number of Available Cores on The Current Machine
freePort

Find a TCP port that can be opened
freeCores

Get the Average Number of Free CPU Cores
cloneNode

Clone one or more nodes
availableWorkers

Get Set of Available Workers
cpuLoad

Get the Recent CPU Load
find_rshcmd

Search for SSH clients on the current system