socketR: POSIX Socket Programming for R

Provides a small POSIX sockets interface to R, enabling direct network communication from R for applications that need low-level socket control or lightweight client and server connections. This package provides IPv4 and IPv6 support with 'TCP/UDP' protocols. It functional API with 'socket_create' and an R6 interface through 'Socket' object.

Version: 1.0.5
Depends: R (≥ 4.6.0)
Imports: R6
Suggests: arrow, knitr, rmarkdown, testthat (≥ 3.0.0)
Published: 2026-09-15
DOI: 10.32614/CRAN.package.socketR
Author: Eduardo Hellas [aut, cre], SAS [cph, fnd]
Maintainer: Eduardo Hellas <ehellas at gmail.com>
BugReports: https://github.com/sassoftware/socketr/issues
License: Apache License (≥ 2)
URL: https://sassoftware.github.io/socketr/
NeedsCompilation: yes
SystemRequirements: Linux operating system with POSIX socket APIs and C++17 compiler
Materials: README
CRAN checks: socketR results

Documentation:

Reference manual: socketR.html , socketR.pdf
Vignettes: Sending Arrow Tables Across a Socket (source, R code)
A Small socketR Example (source, R code)
Blocking Sockets in Two R Sessions (source, R code)
Using the socketR R6 Interface (source, R code)

Downloads:

Package source: socketR_1.0.5.tar.gz
Windows binaries: r-devel: socketR_1.0.5.zip, r-release: socketR_1.0.5.zip, r-oldrel: socketR_1.0.4.zip
macOS binaries: r-release (arm64): not available, r-oldrel (arm64): socketR_1.0.4.tgz, r-release (x86_64): socketR_1.0.5.tgz, r-oldrel (x86_64): socketR_1.0.4.tgz
Old sources: socketR archive

Linking:

Please use the canonical form https://CRAN.R-project.org/package=socketR to link to this page.