Learn R Programming

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

314,022

Version

1.41.0

License

LGPL (>= 2.1)

Issues

Pull Requests

Stars

Forks

Last Published

December 18th, 2024

Functions in parallelly (1.41.0)

isForkedChild

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

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

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

Checks whether or not a Cluster Node Runs on Localhost
isNodeAlive

Check whether or not the cluster nodes are alive
isConnectionValid

Checks if a Connection is Valid
parallelly.options

Options Used by the 'parallelly' Package
makeClusterSequential

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

Create a PSOCK Cluster of R Workers for Parallel Processing
killNode

Terminate one or more cluster nodes using process signaling
serializedSize

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

Check whether a process PID exists or not
supportsMulticore

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

Get the Average Number of Free CPU Cores
availableConnections

Number of Available and Free Connections
as.cluster

Coerce an Object to a Cluster Object
freePort

Find a TCP port that can be opened
autoStopCluster

Automatically Stop a Cluster when Garbage Collected
availableCores

Get Number of Available Cores on The Current Machine
cpuLoad

Get the Recent CPU Load
find_rshcmd

Search for SSH clients on the current system
availableWorkers

Get Set of Available Workers
cloneNode

Clone one or more nodes