Asked this question also on elixirforum.com (see below). Anyone with R 
experience in this group that can help? As a first test I would like to 
call this R program async from elixir, as a test:

divide <- function(x){
  out <- as.integer(x/10)
  Sys.sleep(10)
  return(out)
} 

How can I do this, do you have some code examples? Maybe RServe 
(https://rforge.net/Rserve/) could be handy to use? I know nothing of R 
yet, but would like to call R programs built by a collegue.

What would be the alternatives, could porcelain be a good choice?
Reply

   - created4d
   - last reply 
   
<https://elixirforum.com/t/how-to-let-elixir-phoenix-communicate-async-with-programs-in-r/1098/2>
   4d
   - 1reply
   - 96views
   - 2users
   - 1like

<https://elixirforum.com/t/how-to-let-elixir-phoenix-communicate-async-with-programs-in-r/1098>
<https://elixirforum.com/users/OvermindDL1>
OvermindDL1 <https://elixirforum.com/users/OvermindDL1>
4d 
<https://elixirforum.com/t/how-to-let-elixir-phoenix-communicate-async-with-programs-in-r/1098/2?u=stefanhoutzager>

If there is a good TCP or Pipe implementation that you could use in R then 
that would be a great way, or Porcelain if you want the Elixir system to 
manage the R execution as well.

-- 
You received this message because you are subscribed to the Google Groups 
"elixir-lang-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elixir-lang-talk/7b7277cb-6904-4ade-ab8b-6b4fc277e6d7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to