<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="../assets/xml/rss.xsl" media="all"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>ralph-heinkel.com (Posts about pyRserve)</title><link>https://ralph-heinkel.com/</link><description></description><atom:link href="https://ralph-heinkel.com/categories/pyrserve.xml" rel="self" type="application/rss+xml"></atom:link><language>en</language><copyright>Contents © 2022 Ralph Heinkel </copyright><lastBuildDate>Fri, 11 Feb 2022 11:56:16 GMT</lastBuildDate><generator>Nikola (getnikola.com)</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>EuroPython 2014 pyRserve-slides now available online</title><link>https://ralph-heinkel.com/blog/europython2014-pyrserve-slides-online/</link><dc:creator>Ralph Heinkel</dc:creator><description>&lt;p&gt;After our well-attended
&lt;a href="http://www.meetup.com/HeidelbergPython/events/195639502/"&gt;Python Meetup last Wednesday in Heidelberg&lt;/a&gt;
about "Connecting Python to other programming languages for scientific computing"
I had been approached to publish the slides of my &lt;a href="https://pypi.python.org/pypi/pyRserve"&gt;pyRserve&lt;/a&gt;
talk (which has been the same as the one  I've given at EuroPython in Berlin, for those who are interested).
These are now &lt;a href="http://www.ralph-heinkel.com/download/pyRserve-talk-2014-07-24.pdf"&gt;online, so feel free to download them&lt;/a&gt;.&lt;/p&gt;</description><category>planet</category><category>pyRserve</category><category>Python</category><category>R</category><guid>https://ralph-heinkel.com/blog/europython2014-pyrserve-slides-online/</guid><pubDate>Fri, 19 Sep 2014 09:50:00 GMT</pubDate></item><item><title>pyRserve 0.8.1 released</title><link>https://ralph-heinkel.com/blog/pyRserve-0.8.1-released/</link><dc:creator>Ralph Heinkel</dc:creator><description>&lt;h2&gt;About pyRserve&lt;/h2&gt;
&lt;p&gt;pyRserve is a (pure python) client for connecting Python to an R process on a remote server via TCP-IP (using Rserve).
&lt;code&gt;R&lt;/code&gt; is one of the most important and most widely spread open source statistic packages available.&lt;/p&gt;
&lt;p&gt;Through such a pyRserve connection the full power of R is available on the Python side without programming in R.
From Python variables can get set in and retrieved from R, and R-functions can be created and called remotely.
No R-related libraries need to be installed on the client side, &lt;code&gt;pip install pyRserve&lt;/code&gt; is all that needs to be
done.&lt;/p&gt;
&lt;h2&gt;Sample code&lt;/h2&gt;
&lt;p&gt;This code assumes that &lt;code&gt;Rserve&lt;/code&gt; (the part that connects the R engine to the network) already is running.
Details can be found in the pyRserve docs.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;&amp;gt;&amp;gt;&amp;gt; import pyRserve
&amp;gt;&amp;gt;&amp;gt; conn = pyRserve.connect('Rserve.domain.com')
&amp;gt;&amp;gt;&amp;gt; conn.eval('sum( c(1.5, 4) )') # direct evaluation of a statement in R
5.5
&amp;gt;&amp;gt;&amp;gt; conn.r.myList = [1, 2, 3] # bind a Python list in R to variable 'myList'

&amp;gt;&amp;gt;&amp;gt; conn.voidEval('func1 &amp;lt;- function(v) { v*2 }')  # create a function in R
&amp;gt;&amp;gt;&amp;gt; conn.r.func1(4)                                # call the function in R
16
&lt;/code&gt;&lt;/pre&gt;
&lt;h2&gt;Most important changes in V 0.8.x&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Support for out-of-bound messages (allows for callbacks from R to Python)
(contrib. by Philip. A.)&lt;/li&gt;
&lt;li&gt;Rserve can now be shutdown remotely (contrib. by Uwe Schmitt)&lt;/li&gt;
&lt;li&gt;Fixed bug when passing R functions as parameters to R functions&lt;/li&gt;
&lt;li&gt;Documentation errors have been fixed&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Documentation and Support&lt;/h2&gt;
&lt;p&gt;The documentation for pyRserve is available at &lt;a href="http://packages.python.org/pyRserve"&gt;http://packages.python.org/pyRserve&lt;/a&gt;&lt;br&gt;
The corresponding Google news group can be found at
&lt;a href="http://groups.google.com/group/pyrserve"&gt;http://groups.google.com/group/pyrserve&lt;/a&gt;&lt;/p&gt;</description><category>planet</category><category>pyRserve</category><category>Python</category><category>R</category><guid>https://ralph-heinkel.com/blog/pyRserve-0.8.1-released/</guid><pubDate>Fri, 18 Jul 2014 08:20:00 GMT</pubDate></item><item><title>pyRserve 0.6.0 released</title><link>https://ralph-heinkel.com/blog/pyRserve-0.6.0-released/</link><dc:creator>Ralph Heinkel</dc:creator><description>&lt;p&gt;While being at EuroPython in Florence the latest version of pyRserve has now been finished and is
available via pypi (&lt;code&gt;easy_install -U pyRserve&lt;/code&gt;). If you are at EuroPython, too, and want to talk about
it just come and see me.&lt;/p&gt;
&lt;h3&gt;About pyRserve&lt;/h3&gt;
&lt;p&gt;pyRserve is a (pure python) client for connecting Python to an R process on a remote server via TCP-IP (using Rserve).
&lt;code&gt;R&lt;/code&gt; is one of the most important and most widely spread open source statistic packages available.&lt;/p&gt;
&lt;p&gt;Through such a pyRserve connection the full power of R is available on the Python side without programming in R.
From Python variables can get set in and retrieved from R, and R-functions can be called remotely.
No R-related libraries need to be installed on the client side.&lt;/p&gt;
&lt;h3&gt;Sample code&lt;/h3&gt;
&lt;pre&gt;&lt;code&gt;&amp;gt;&amp;gt;&amp;gt; import pyRserve
&amp;gt;&amp;gt;&amp;gt; conn = pyRserve.connect('servername.domain.com')
&amp;gt;&amp;gt;&amp;gt; conn.r('1+1')                # direct evaluation of a statement in R
2
&amp;gt;&amp;gt;&amp;gt; conn.r.myList = [1, 2, 3]    # bind a Python list in R to variable 'myList'

&amp;gt;&amp;gt;&amp;gt; conn.r('func1 &amp;lt;- function(v) { v*2 }') # create a function in R
&amp;gt;&amp;gt;&amp;gt; conn.r.func1(4)                        # call the function in R
16
&lt;/code&gt;&lt;/pre&gt;
&lt;h3&gt;Most important changes in V 0.6.0&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;Support for Python 3.x (therefore dropped support for Python &amp;lt;= 2.5)&lt;/li&gt;
&lt;li&gt;Support for unicode strings&lt;/li&gt;
&lt;li&gt;Suport for Fortran-style ordering of numpy arrays&lt;/li&gt;
&lt;li&gt;Elements of single-item arrays are now translated to native python data types&lt;/li&gt;
&lt;li&gt;Full support complex numbers, partial support for 64bit integers and arrays&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;Documentation and Support&lt;/h3&gt;
&lt;p&gt;The documentation for pyRserve is available at &lt;a href="http://packages.python.org/pyRserve"&gt;http://packages.python.org/pyRserve&lt;/a&gt;&lt;br&gt;
The corresponding Google news group can be found at
&lt;a href="http://groups.google.com/group/pyrserve"&gt;http://groups.google.com/group/pyrserve&lt;/a&gt;&lt;/p&gt;</description><category>pyRserve</category><category>Python</category><category>R</category><guid>https://ralph-heinkel.com/blog/pyRserve-0.6.0-released/</guid><pubDate>Wed, 04 Jul 2012 17:20:00 GMT</pubDate></item><item><title>pyRserve 0.5.2 released</title><link>https://ralph-heinkel.com/blog/pyRserve-0.5.2-released/</link><dc:creator>Ralph Heinkel</dc:creator><description>&lt;p&gt;The latest version is now available via pypi (&lt;code&gt;easy_install -U pyRserve&lt;/code&gt;).&lt;/p&gt;
&lt;h3&gt;About pyRserve&lt;/h3&gt;
&lt;p&gt;pyRserve is a (pure python) client for connecting Python to an R process on a remote server via TCP-IP (using Rserve).
Through such a connection variables can be get and set in R from Python, and also R-functions can be called remotely.
No R-related libraries need to be installed on the client side.&lt;/p&gt;
&lt;h3&gt;Sample code&lt;/h3&gt;
&lt;pre&gt;&lt;code&gt;&amp;gt;&amp;gt;&amp;gt; from pyRserve import connect
&amp;gt;&amp;gt;&amp;gt; conn = connect('your R server')
&amp;gt;&amp;gt;&amp;gt; conn.r('1+1')                # direct evaluation of a statement
2
&amp;gt;&amp;gt;&amp;gt; conn.r.myList = [1, 2, 3]    # bind a list within R to variable 'myList'

&amp;gt;&amp;gt;&amp;gt; conn.r('func1 &amp;lt;- function(v) { v*2 }') # create a function in R
&amp;gt;&amp;gt;&amp;gt; conn.r.func1(4)                        # call the function in R
16
&lt;/code&gt;&lt;/pre&gt;
&lt;h3&gt;Changes in V 0.5.2&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;Fixed bug with 32bit integer conversion on 64bit machines. Upgrade highly recommended!&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;Documentation and Support&lt;/h3&gt;
&lt;p&gt;The documentation for pyRserve is available at &lt;a href="http://packages.python.org/pyRserve"&gt;http://packages.python.org/pyRserve&lt;/a&gt;&lt;br&gt;
The corresponding Google news group can be found at
&lt;a href="http://groups.google.com/group/pyrserve"&gt;http://groups.google.com/group/pyrserve&lt;/a&gt;&lt;/p&gt;</description><category>pyRserve</category><category>Python</category><category>R</category><guid>https://ralph-heinkel.com/blog/pyRserve-0.5.2-released/</guid><pubDate>Tue, 06 Dec 2011 18:22:00 GMT</pubDate></item><item><title>pyRserve 0.5.0 released</title><link>https://ralph-heinkel.com/blog/pyRserve-0.5.0-released/</link><dc:creator>Ralph Heinkel</dc:creator><description>&lt;p&gt;The latest version is now available via pypi (&lt;code&gt;easy_install -U pyRserve&lt;/code&gt;).&lt;/p&gt;
&lt;h3&gt;About pyRserve&lt;/h3&gt;
&lt;p&gt;pyRServe is a library for connecting Python to an R process running under Rserve.
Through such a connection variables can be get and set in R from Python, and also R-functions can be called remotely.&lt;/p&gt;
&lt;h3&gt;Changes in V 0.5.0&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;Renamed pyRserve.rconnect() to pyRserve.connect(). The former still works but shows a DeprecationWarning&lt;/li&gt;
&lt;li&gt;String evaluation should now only be executed on the namespace directly, not on the connection object anymore. The latter still works but shows a DeprecationWarning.&lt;/li&gt;
&lt;li&gt;New kw argument atomicArray=True added to pyRserve.connect() for preventing single valued arrays from being converted into atomic python data types.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;Documentation and Support&lt;/h3&gt;
&lt;p&gt;The documentation for pyRserve is available at &lt;a href="http://packages.python.org/pyRserve"&gt;http://packages.python.org/pyRserve&lt;/a&gt;&lt;br&gt;
The corresponding Google news group can be found at
&lt;a href="http://groups.google.com/group/pyrserve"&gt;http://groups.google.com/group/pyrserve&lt;/a&gt;&lt;/p&gt;</description><category>pyRserve</category><category>Python</category><category>R</category><guid>https://ralph-heinkel.com/blog/pyRserve-0.5.0-released/</guid><pubDate>Wed, 12 Oct 2011 13:22:00 GMT</pubDate></item></channel></rss>