Questions tagged [svsocket]

R Implementation of a simple socket server.

The SciViews svSocket package provides a stateful, multi-client and preemtive socket server. Socket transaction are operational even when R is buzy in its main event loop (calculation done at the prompt). This R socket server uses the excellent asynchronous socket ports management by Tcl, and thus, it needs a working version of Tcl/Tk (>= 8.4) and of the tcltk R package.

6 questions
5
votes
0 answers

svSocket evalServer skip waiting process

Problem Version 1, Can we make pr_fun process it's retun without waiting for ch_fun() to finish ch_fun <- function() {Sys.sleep(10)} pr_fun <- function() {ch_fun(); return("Done")} pr_fun() Proble Actual Version R session 1 as svSocket…
anonR
  • 849
  • 7
  • 26
3
votes
1 answer

Send queries to R server programmatically

Please consider the following example (using 2 R sessions): 1st R session - R Server library(svSocket) startSocketServer() 2nd R session - R Client library(svSocket) con <- socketConnection(host = "localhost", port = 8888, blocking =…
Michele
  • 8,563
  • 6
  • 45
  • 72
1
vote
1 answer

How to send messages via svSocket between R session and rstudio-server on headless Ubuntu?

I have a headless R server which serves the recent rstudio-server. I need to pass it some objects via svSocket. Because the svSocket uses TCL/TK message queue, which needs a working X11 session I know I need to embed things in a virtual X11…
Adam Ryczkowski
  • 7,592
  • 13
  • 42
  • 68
0
votes
0 answers

How to run a function loaded on the server side from the client in R

I need you help. The situation is that I have to use the computational power of the a remote server from my laptop. I am using svSocket package and I have written the following: Client side library(svSocket) ##establish connection con <-…
Torakiki
  • 45
  • 6
0
votes
1 answer

How to read incomming messages using svSocket Server in R

I am using svSocket package in R to create a socket server. I have successfully created server using startSocketServer(...). I am able to connect my application to the server and send data from server to the application. But I am struggeling with…
joe
  • 87
  • 8
0
votes
1 answer

pass expressions to evalServer

With the package svSocket I'm trying to execute in the server a generic expression expr <- "demo<-new.env()" evalServer(con, expr, expr) > evalServer(con, parse(text=expr)) Error in source(objcon, local = TRUE, echo = FALSE, verbose = FALSE) : …
Michele
  • 8,563
  • 6
  • 45
  • 72