All Projects → ropensci → Rzmq

ropensci / Rzmq

R package for ZMQ

Programming Languages

r
7636 projects

Projects that are alternatives of or similar to Rzmq

Gsodr
Global Surface Summary of the Day ('GSOD') Weather Data Client for R
Stars: ✭ 72 (-13.25%)
Mutual labels:  r-package, rstats
Spelling
Tools for Spell Checking in R
Stars: ✭ 82 (-1.2%)
Mutual labels:  r-package, rstats
Notary
🔏📦 Signing & verification of R packages
Stars: ✭ 48 (-42.17%)
Mutual labels:  r-package, rstats
Pkgsearch
Search R packages on CRAN
Stars: ✭ 73 (-12.05%)
Mutual labels:  r-package, rstats
Mixomics
Development repository for the Bioconductor package 'mixOmics '
Stars: ✭ 58 (-30.12%)
Mutual labels:  r-package, rstats
Hexagon
◀️⏹▶️ R package for creating hexagon shaped xy data frames.
Stars: ✭ 40 (-51.81%)
Mutual labels:  r-package, rstats
Feddata
Functions to Automate Downloading Geospatial Data Available from Several Federated Data Sources
Stars: ✭ 70 (-15.66%)
Mutual labels:  r-package, rstats
Graphql
Bindings to libgraphqlparser for R
Stars: ✭ 31 (-62.65%)
Mutual labels:  r-package, rstats
Lawn
⛔ ARCHIVED ⛔ turf.js R client
Stars: ✭ 57 (-31.33%)
Mutual labels:  r-package, rstats
Nodbi
Document DBI connector for R
Stars: ✭ 56 (-32.53%)
Mutual labels:  r-package, rstats
Webmockr
R library for stubbing and setting expectations on HTTP requests
Stars: ✭ 37 (-55.42%)
Mutual labels:  r-package, rstats
Sysreqs
R package to install system requirements
Stars: ✭ 63 (-24.1%)
Mutual labels:  r-package, rstats
Cricketdata
International cricket data for men and women, Tests, ODIs and T20s
Stars: ✭ 35 (-57.83%)
Mutual labels:  r-package, rstats
Getlandsat
get landsat 8 images and metadata
Stars: ✭ 47 (-43.37%)
Mutual labels:  r-package, rstats
Cld2
R Wrapper for Google's Compact Language Detector 2
Stars: ✭ 34 (-59.04%)
Mutual labels:  r-package, rstats
Tl
tldr for R!
Stars: ✭ 52 (-37.35%)
Mutual labels:  r-package, rstats
Wellknown
WKT <-> GeoJSON
Stars: ✭ 15 (-81.93%)
Mutual labels:  r-package, rstats
Sofa
easy R interface to CouchDB
Stars: ✭ 30 (-63.86%)
Mutual labels:  r-package, rstats
Vcr
Record HTTP calls and replay them
Stars: ✭ 54 (-34.94%)
Mutual labels:  r-package, rstats
Lexisnexistools
📰 Working with newspaper data from 'LexisNexis'
Stars: ✭ 59 (-28.92%)
Mutual labels:  r-package, rstats

rzmq

R Bindings for 'ZeroMQ'

Project Status: Active – The project has reached a stable, usable state and is being actively developed. Build Status AppVeyor Build Status Package-License CRAN Downloads

Interface to the 'ZeroMQ' lightweight messaging kernel (see http://www.zeromq.org/ for more information).

Features

rzmq is a message queue for serialized R objects.

  • rzmq implements most the standard socket pairs that ZMQ offers.
  • ZMQ devices are not implemented yet, nor is zmq_poll.
  • Look for more features shortly.

Installation

Binary packages for OS-X or Windows can be installed directly from CRAN:

install.packages("rzmq")

Build from source

Installation from source requires ZeroMQ. On Debian or Ubuntu use libzmq3-dev:

sudo apt-get install -y libzmq3-dev

On Fedora we need zeromq-devel:

sudo yum install zeromq-devel

On CentOS / RHEL we install zeromq3-devel via EPEL:

sudo yum install epel-release
sudo yum install zeromq3-devel

On OS-X use zeromq from Homebrew:

brew install zeromq

Usage

A minimal example of remote execution.

execute this R script on the remote server:

#!/usr/bin/env Rscript
library(rzmq)
context = init.context()
socket = init.socket(context,"ZMQ_REP")
bind.socket(socket,"tcp://*:5555")
while(1) {
    msg = receive.socket(socket);
    fun <- msg$fun
    args <- msg$args
    print(args)
    ans <- do.call(fun,args)
    send.socket(socket,ans);
}

and execute this bit locally:

library(rzmq)

remote.exec <- function(socket,fun,...) {
    send.socket(socket,data=list(fun=fun,args=list(...)))
    receive.socket(socket)
}

substitute(expr)
context = init.context()
socket = init.socket(context,"ZMQ_REQ")
connect.socket(socket,"tcp://localhost:5555")

ans <- remote.exec(socket,sqrt,10000)
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].