Re: [R] How to parallelize a process called by a socket connection

2020-02-02 Thread Ivan Krylov
On Sat, 1 Feb 2020 11:24:51 -0800 James Spottiswoode wrote: > while(TRUE){ > con <- socketConnection(host="localhost", port = > server_port, blocking=TRUE, server=TRUE, open="r+", timeout = > 1) > data <- readLines(con, 1L, skipNul = T, ok = T) > response <- check(data

Re: [R] How to parallelize a process called by a socket connection

2020-02-01 Thread Hervé Pagès
Seems like you've replied to an existing thread to ask a new question (your post gets buried deep inside the "How to extract or sort values from one column" thread in my Thunderbird). Unfortunately this means that a lot of people who might be able to help you will miss it. H. On 2/1/20 11:24

[R] How to parallelize a process called by a socket connection

2020-02-01 Thread James Spottiswoode
Hi R Experts, I’m using R version 3.4.3 running under Linux on an AWS EC2 instance. I have an R code listening on a port for a socket connection which passes incoming data to a function the results of which are then passed back to the calling machine. Here’s the function that listens for a so