Learn R Programming

parallelly (version 1.43.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

279,078

Version

1.43.0

License

LGPL (>= 2.1)

Issues

Pull Requests

Stars

Forks

Maintainer

Henrik Bengtsson

Last Published

March 24th, 2025

Functions in parallelly (1.43.0)

isNodeAlive

Check whether or not the cluster nodes are alive
killNode

Terminate one or more cluster nodes using process signaling
parallelly.options

Options Used by the 'parallelly' Package
isConnectionValid

Checks if a Connection is Valid
isForkedNode

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

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

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

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

Checks whether or not a Cluster Node Runs on Localhost
isForkedChild

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

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

Calculate the size of an R object when it is serialized
pid_exists

Check whether a process PID exists or not
cloneNode

Clone one or more nodes
as.cluster

Coerce an Object to a Cluster Object
freePort

Find a TCP port that can be opened
availableConnections

Number of Available and Free Connections
cpuLoad

Get the Recent CPU Load
freeCores

Get the Average Number of Free CPU Cores
availableCores

Get Number of Available Cores on The Current Machine
autoStopCluster

Automatically Stop a Cluster when Garbage Collected
availableWorkers

Get Set of Available Workers
find_rshcmd

Search for SSH clients on the current system