r/Rlanguage • u/WannaBeStatDev • Jul 28 '26
Any good Socket interfaces in R?
R have a very barebones socket implementation. And right now I am getting in trouble because looks like it doesn't even support IPV6 (may be user error)
Any one has a good material about R support for IPV6 sockets? or R socket programming in general. It seem very lackluster with missing SHUTDOWN an other features.
1
u/kennedymwavu Jul 28 '26
don't know much about socket programming but you can checkout the nanonext r pkg and see if it helps.
1
u/WannaBeStatDev Jul 29 '26
Just checked it, it would fix if I were designing from scratch. And it is very cool.
But now it would mean a refactoring, and the fix is only required on R. (and not even sure I could request the libnng for cpp).
1
Jul 29 '26
[removed] — view removed comment
1
u/WannaBeStatDev Jul 29 '26
There is no "socket" package AFAIK. I saw some svSocket but also not generic.
I might actually go the Rcpp route actually, it will just be more laborious.
1
u/Viriaro Jul 28 '26
Have you checked
nanonext?