Learn R Programming

npRmpi

This is the R package npRmpi (Parallel Nonparametric Kernel Methods for Mixed Datatypes) written and maintained by Jeffrey S. Racine (racinej@mcmaster.ca) and co-authored by Tristen Hayfield (tristen.hayfield@gmail.com).

Installation

Presuming that a working implementation of MPI exists on the target machine, you can install the stable version on CRAN:

install.packages('npRmpi', dependencies = TRUE)

Or download the zip ball or tar ball, decompress and run R CMD INSTALL on it, or use the devtools package to install the development version:

library(devtools); install_github('JeffreyRacine/R-Package-np', ref = 'npRmpi')

Note also that if you wish a fast install without the building of vignettes (or if you do not have TeX installed on your system), add the option build_vignettes=FALSE to the install_github() call.

MPI (MPICH via MacPorts) Quick Setup

export RMPI_TYPE=MPICH
export RMPI_INCLUDE=/opt/local/include/mpich-mp
export RMPI_LIB_PATH=/opt/local/lib/mpich-mp
export RMPI_LIBS="-L/opt/local/lib/mpich-mp -lmpi"
export CC=mpicc
export CXX=mpicxx

Then build/install from the repo:

R CMD build .
R CMD INSTALL npRmpi_0.60-20.tar.gz

See BUILD.md and WORKTREES.md in this repo for local build details.

For more information on this project please visit the maintainer's website (https://experts.mcmaster.ca/people/racinej).

Copy Link

Version

Install

install.packages('npRmpi')

Monthly Downloads

244

Version

0.60-20

License

GPL

Issues

Pull Requests

Stars

Forks

Maintainer

Jeffrey Racine

Last Published

February 16th, 2026

Functions in npRmpi (0.60-20)

Engel95

1995 British Family Expenditure Survey
mpi.bcast.cmd

Extension of MPI_Bcast API
mpi.cart.create

MPI_Cart_create
mpi.barrier

MPI_Barrier API
mpi.cart.rank

MPI_Cart_rank
mpi.cart.get

MPI_Cart_get
mpi.apply

Scatter an array to slaves and then apply a FUN
mpi.cart.shift

MPI_Cart_shift
mpi.bcast.Robj

Extensions of MPI_Bcast API
mpi.cart.coords

MPI_Cart_coords
mpi.bcast

MPI_Bcast API
mpi.comm.spawn

MPI_Comm_spawn API
mpi.any.source

MPI Constants
mpi.comm.set.errhandler

MPI_Comm_set_errhandler API
mpi.comm.get.parent

MPI_Comm_get_parent, MPI_Comm_remote_size, MPI_Comm_test_inter APIs
mpi.comm.disconnect

MPI_Comm_disconnect API
mpi.exit

Exit MPI Environment
mpi.cartdim.get

MPI_Cartdim_get
mpi.dims.create

MPI_Dims_create
mpi.comm.size

MPI_Comm_c2f, MPI_Comm_dup, MPI_Comm_rank, and MPI_Comm_size APIs
mpi.comm.free

MPI_Comm_free API
mpi.intercomm.merge

MPI_Intercomm_merge API
mpi.parSim

Parallel Monte Carlo Simulation
mpi.get.processor.name

MPI_Get_processor_name API
mpi.gather.Robj

Extentions of MPI_Gather and MPI_Allgather APIs
mpi.get.count

MPI_Get_count API
mpi.info.create

MPI_Info_create, MPI_Info_free, MPI_Info_get, MPI_Info_set APIs
mpi.get.sourcetag

Utility for finding the source and tag of a received message
mpi.finalize

MPI_Finalize API
mpi.gather

MPI_Gather, MPI_Gatherv, MPI_Allgather, and MPI_Allgatherv APIs
mpi.send

MPI_Send, MPI_Isend, MPI_Recv, and MPI_Irecv APIs
mpi.remote.exec

Remote Executions on R slaves
mpi.scatter.Robj

Extensions of MPI_ SCATTER and MPI_SCATTERV
mpi.scatter

MPI_Scatter and MPI_Scatterv APIs
mpi.probe

MPI_Probe and MPI_Iprobe APIs
mpi.realloc

Find and increase the lengths of MPI opaques comm, request, and status
mpi.reduce

MPI_Reduce and MPI_Allreduce APIs
mpi.applyLB

(Load balancing) parallel apply
mpi.send.Robj

Extensions of MPI_Send and MPI_Recv APIs
mpi.iapplyLB

(Load balancing) parallel apply with nonblocking features
mpi.sendrecv

MPI_Sendrecv and MPI_Sendrecv_replace APIs
npcdist

Kernel Conditional Distribution Estimation with Mixed Data Types
npRmpi

Parallel Nonparametric Kernel Smoothing Methods for Mixed Data Types
npcmstest

Kernel Consistent Model Specification Test with Mixed Data Types
mpi.spawn.Rslaves

Spawn and Close R Slaves
mpi.setup.rngstream

Setup parallel RNG on all slaves
npcdens

Kernel Conditional Density Estimation with Mixed Data Types
npcdensbw

Kernel Conditional Density Bandwidth Selection with Mixed Data Types
npcdistbw

Kernel Conditional Distribution Bandwidth Selection with Mixed Data Types
mpi.wait

Nonblocking completion operations
mpi.universe.size

MPI_Universe_size API
npudens

Kernel Density Estimation with Mixed Data Types
np.mpi.initialize

Initialize Master and Slave Nodes for the np Package
npcopula

Kernel Copula Estimation with Mixed Data Types
npconmode

Kernel Modal Regression with Mixed Data Types
npksum

Kernel Sums with Mixed Data Types
npudist

Kernel Distribution Estimation with Mixed Data Types
npudistbw

Kernel Distribution Bandwidth Selection with Mixed Data Types
npdeneqtest

Kernel Consistent Density Equality Test with Mixed Data Types
npudensbw

Kernel Density Bandwidth Selection with Mixed Data Types
npdeptest

Kernel Consistent Pairwise Nonlinear Dependence Test for Univariate Processes
lamhosts

Hosts Information
wage1

Cross-Sectional Data on Wages
npRmpi-internal

Internal npRmpi functions
gradients

Extract Gradients
Italy

Italian GDP Panel
oecdpanel

Cross Country Growth Panel
mpi.abort

MPI_Abort API
cps71

Canadian High School Graduate Earnings
b.star

Compute Optimal Block Length for Stationary and Circular Bootstrap