Crandore Hub

pbdZMQ

Programming with Big Data -- Interface to 'ZeroMQ'

'ZeroMQ' is a well-known library for high-performance asynchronous messaging in scalable, distributed applications. This package provides high level R wrapper functions to easily utilize 'ZeroMQ'. We mainly focus on interactive client/server programming frameworks. For convenience, a minimal 'ZeroMQ' library (4.2.2) is shipped with 'pbdZMQ', which can be used if no system installation of 'ZeroMQ' is available. A few wrapper functions compatible with 'rzmq' are also provided.

README

# Instructions

Before proceeding with the examples contained in this subdirectory,
please read all of the following carefully.  Failure to do so may
lead to confusion.


## Naming Conventions

Examples are given in the variety of interfaces avaialable in pbdZMQ.
The naming convention goes:

1. No preface is placed on the file name for the basic interface.
2. pyzmq_ prefaces the file name if the example uses the PyZMQ-like R6
   interface (see help("pyzmq") for details).
3. rzmq_ prefaces the file name if the example uses the rzmq-like
   interface (see help("rzmq") for details).


## Running An Example

Each of these examples should be executed in the following way:

1. Start the server by running server.r IN BATCH.  You can do this by
   executing `Rscript server.r` from a terminal.
2. Start the client by sourcing client.r INTERACTIVELY.  You can do this
   by starting an R session (Rstudio, wingui, R.app, ...) and running
   `source client.r`.
3. Pass commands from client to server by executing 
   `sendrecv(socket, "1+1")` from the client (replace "1+1" with the
   command of your choice, as a string).
4. Shut down the server by executing `sendrecv(socket, "EXIT")` on
   the client.

See the package vignette for more details.

Versions across snapshots

VersionRepositoryFileSize
0.3-14 rolling linux/jammy R-4.5 pbdZMQ_0.3-14.tar.gz 536.4 KiB
0.3-14 rolling linux/noble R-4.5 pbdZMQ_0.3-14.tar.gz 536.2 KiB
0.3-14 rolling source/ R- pbdZMQ_0.3-14.tar.gz 1.1 MiB
0.3-14 latest linux/jammy R-4.5 pbdZMQ_0.3-14.tar.gz 536.4 KiB
0.3-14 latest linux/noble R-4.5 pbdZMQ_0.3-14.tar.gz 536.2 KiB
0.3-14 latest source/ R- pbdZMQ_0.3-14.tar.gz 1.1 MiB
0.3-14 2026-04-26 source/ R- pbdZMQ_0.3-14.tar.gz 1.1 MiB
0.3-14 2026-04-23 source/ R- pbdZMQ_0.3-14.tar.gz 1.1 MiB
0.3-14 2026-04-09 windows/windows R-4.5 pbdZMQ_0.3-14.zip 999.3 KiB
0.3-14 2025-04-20 source/ R- pbdZMQ_0.3-14.tar.gz 1.1 MiB