Re: [Rd] Using TCP/IP sockets in R

2006-08-16 Thread Barry Rowlingson
Dirk Eddelbuettel wrote:

 Are you aware of Simon's Rserve project at http://www.rosuda.org/Rserve/ ?
 It already has Java and C++ client code -- it would be nice if you could
 add Python client code to this project. 

I dont think its feature-complete or well-tested or documented and 
certainly doesn't deserve a version number anywhere near 1.x, but I did 
this:

http://www.maths.lancs.ac.uk/~rowlings/Software/PythonRserve/

  - which I did a while ago and its untested against the latest Rserve 
versions. No money back, no guarantee.

Barry

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


Re: [Rd] Using TCP/IP sockets in R

2006-08-16 Thread Philippe Grosjean
There is also svSocket in the SciViews bundle.

..°}))
  ) ) ) ) )
( ( ( ( (Prof. Philippe Grosjean
  ) ) ) ) )
( ( ( ( (Numerical Ecology of Aquatic Systems
  ) ) ) ) )   Mons-Hainaut University, Belgium
( ( ( ( (
..

Dirk Eddelbuettel wrote:
 On 15 August 2006 at 14:31, Mark Schultz wrote:
 | Hi All:
 |   I've examined the R documentation on sockets and while I can probably
 | figure it out with a bit of experimentation, I wondered if anyone has
 | some sample code they could send me. I'd like to use R
 | as a statistics server to python clients. Is ist possible to have a
 | multithreaded server in R?
 
 Are you aware of Simon's Rserve project at http://www.rosuda.org/Rserve/ ?
 It already has Java and C++ client code -- it would be nice if you could
 add Python client code to this project.  It is not multithreaded [ as R's
 core isn't, this isn't easily achievable ] but allows several properly
 separated connections at the same time [ when running on Linux/Unix ]. 
 
 Cheers, Dirk


__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


Re: [Rd] Using TCP/IP sockets in R

2006-08-16 Thread Jeffrey Horner
Mark Schultz wrote:
 Hi All:
   I've examined the R documentation on sockets and while I can probably
 figure it out with a bit of experimentation, I wondered if anyone has
 some sample code they could send me. I'd like to use R
 as a statistics server to python clients. Is ist possible to have a
 multithreaded server in R?

To answer your last question, R doesn't provide thread capabilities, so 
one cannot write a multi-threaded server in R. Hence, Rserve, Rsoap, and 
Rapache (others?) deal with concurrency by using the fork() system call 
(not available on windows) which clones the parent process, to handle 
multiple clients.

-- 
Jeffrey Horner   Computer Systems Analyst School of Medicine
615-322-8606 Department of Biostatistics   Vanderbilt University

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


[Rd] Using TCP/IP sockets in R

2006-08-15 Thread Mark Schultz
Hi All:
  I've examined the R documentation on sockets and while I can probably
figure it out with a bit of experimentation, I wondered if anyone has
some sample code they could send me. I'd like to use R
as a statistics server to python clients. Is ist possible to have a
multithreaded server in R?
Thanks a lot,
Mark Schultz

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


Re: [Rd] Using TCP/IP sockets in R

2006-08-15 Thread Greg Snow
Have you looked at the nws package (and the nws server from the same
group), they include python to do parallel computing and may give you
the examples you need.   


-- 
Gregory (Greg) L. Snow Ph.D.
Statistical Data Center
Intermountain Healthcare
[EMAIL PROTECTED]
(801) 408-8111
 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mark Schultz
Sent: Tuesday, August 15, 2006 12:32 PM
To: R-devel@r-project.org
Subject: [Rd] Using TCP/IP sockets in R

Hi All:
  I've examined the R documentation on sockets and while I can probably
figure it out with a bit of experimentation, I wondered if anyone has
some sample code they could send me. I'd like to use R as a statistics
server to python clients. Is ist possible to have a multithreaded server
in R?
Thanks a lot,
Mark Schultz

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


Re: [Rd] Using TCP/IP sockets in R

2006-08-15 Thread Dirk Eddelbuettel

On 15 August 2006 at 14:31, Mark Schultz wrote:
| Hi All:
|   I've examined the R documentation on sockets and while I can probably
| figure it out with a bit of experimentation, I wondered if anyone has
| some sample code they could send me. I'd like to use R
| as a statistics server to python clients. Is ist possible to have a
| multithreaded server in R?

Are you aware of Simon's Rserve project at http://www.rosuda.org/Rserve/ ?
It already has Java and C++ client code -- it would be nice if you could
add Python client code to this project.  It is not multithreaded [ as R's
core isn't, this isn't easily achievable ] but allows several properly
separated connections at the same time [ when running on Linux/Unix ]. 

Cheers, Dirk

-- 
Hell, there are no rules here - we're trying to accomplish something. 
  -- Thomas A. Edison

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel