[Rpy] SF.net SVN: rpy:[588] branches/rpy_nextgen/doc/build/html/_static/ rpy_logo_header.png
Revision: 588 http://rpy.svn.sourceforge.net/rpy/?rev=588&view=rev Author: lgautier Date: 2008-07-24 10:00:17 + (Thu, 24 Jul 2008) Log Message: --- Deleted image logo from the build/html/_static directory (sphinx 0.4.1 fixes the problem - no need for this workaround anymore) Removed Paths: - branches/rpy_nextgen/doc/build/html/_static/rpy_logo_header.png This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ___ rpy-list mailing list rpy-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rpy-list
[Rpy] SF.net SVN: rpy:[589] branches/rpy_nextgen/doc/build/
Revision: 589 http://rpy.svn.sourceforge.net/rpy/?rev=589&view=rev Author: lgautier Date: 2008-07-24 10:01:52 + (Thu, 24 Jul 2008) Log Message: --- Directories no longer needed (Sphinx 0.4.1 fixes the issue) Removed Paths: - branches/rpy_nextgen/doc/build/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ___ rpy-list mailing list rpy-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rpy-list
[Rpy] SF.net SVN: rpy:[591] branches/rpy_nextgen/rpy/rinterface/rinterface.c
Revision: 591 http://rpy.svn.sourceforge.net/rpy/?rev=591&view=rev Author: lgautier Date: 2008-07-24 14:02:34 + (Thu, 24 Jul 2008) Log Message: --- rinterface: - clear the "initialized" bit when ending R - prevent the call of a function when R has been ended Modified Paths: -- branches/rpy_nextgen/rpy/rinterface/rinterface.c Modified: branches/rpy_nextgen/rpy/rinterface/rinterface.c === --- branches/rpy_nextgen/rpy/rinterface/rinterface.c2008-07-24 13:17:52 UTC (rev 590) +++ branches/rpy_nextgen/rpy/rinterface/rinterface.c2008-07-24 14:02:34 UTC (rev 591) @@ -317,6 +317,8 @@ /* */ Rf_endEmbeddedR((int)fatal); + embeddedR_status = embeddedR_status & (! RPY_R_INITIALIZED); + RPY_SEXP(globalEnv) = R_EmptyEnv; RPY_SEXP(baseNameSpaceEnv) = R_EmptyEnv; GetErrMessage_SEXP = R_NilValue; @@ -704,6 +706,12 @@ Sexp_call(PyObject *self, PyObject *args, PyObject *kwds) { + if (! (embeddedR_status & RPY_R_INITIALIZED)) { +PyErr_Format(PyExc_RuntimeError, +"R must be initialized before any call to R functions is possible."); +return NULL; + } + if (embeddedR_status & RPY_R_BUSY) { PyErr_Format(PyExc_RuntimeError, "Concurrent access to R is not allowed."); return NULL; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ___ rpy-list mailing list rpy-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rpy-list
[Rpy] [ rpy-Bugs-2023699 ] Installation - libRlapack.so()(64bit)
Bugs item #2023699, was opened at 2008-07-21 15:59 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=453021&aid=2023699&group_id=48422 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: Installation - libRlapack.so()(64bit) Initial Comment: Hi, I'm installing python-rpy for an application which need it. And I tried on a Mandriva2008 with urpmi, and get : [EMAIL PROTECTED] extension]# urpmi python-rpy Le paquetage demand ne peut pas tre install : python-rpy-1.0-0.rc3.2mdv2008.0.x86_64 (car libRlapack.so()(64bit) est non satisfait) Dsirez-vous tout de mme continuer ? (O/n) O In English ^^ : This package can't be installed: python-rpy-1.0-0.rc3.2mdv2008.0.x86_64 (because libRlapack.so()(64bit) is not satisfied) Do you really want to continue ? (Y/n) Y For information : [EMAIL PROTECTED] extension]# rpm -qa | grep R-base R-base-2.6.1-4mdv2008.0 [EMAIL PROTECTED] extension]# locate libR /usr/lib64/libRKC.so.1 /usr/lib64/libRKC.so.1.2 /usr/lib64/libRKC16.so.1 /usr/lib64/libRKC16.so.1.2 /usr/lib64/R/lib/libR.so /usr/lib64/R/lib/libRblas.so /usr/lib64/R/lib/libRlapack.so /usr/lib64/pkgconfig/libR.pc [EMAIL PROTECTED] extension]# cat /etc/redhat-release Mandriva Linux release 2008.0 (Official) for x86_64 Any Ideas ? Thanks, Gildas [fr] -- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=453021&aid=2023699&group_id=48422 - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ___ rpy-list mailing list rpy-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rpy-list
[Rpy] SF.net SVN: rpy:[592] branches/rpy_nextgen
Revision: 592 http://rpy.svn.sourceforge.net/rpy/?rev=592&view=rev Author: lgautier Date: 2008-07-24 14:09:54 + (Thu, 24 Jul 2008) Log Message: --- Added NEWS entry and unit test for the last change Modified Paths: -- branches/rpy_nextgen/NEWS branches/rpy_nextgen/rpy/rinterface/tests/test_EmbeddedR.py Modified: branches/rpy_nextgen/NEWS === --- branches/rpy_nextgen/NEWS 2008-07-24 14:02:34 UTC (rev 591) +++ branches/rpy_nextgen/NEWS 2008-07-24 14:09:54 UTC (rev 592) @@ -11,8 +11,9 @@ - module :mod:`rpy2.rlike.container` with the class :class:`NamedList`. -:mode:`rpy2.rinterface`: +:mod:`rpy2.rinterface`: + - method :meth:`named`, corresponding to R's C-level NAMED - experimental methods :meth:`frame` and :meth:`enclos` for SexpEnvironment corresponding to R's C-level FRAME and ENCLOS @@ -22,9 +23,9 @@ - R stack checking is disabled (no longer crashes when multithreading) -- Fixed missing R_PreserveObject for vectors (causing R part of the object to sometimes vanish -during garbage collection) +- Fixed missing R_PreserveObject for vectors (causing R part of the object to sometimes vanish during garbage collection) +- Prevents calling an R function when R has been ended (raise :class:`RuntimeException`). Release 2.0.0a1 Modified: branches/rpy_nextgen/rpy/rinterface/tests/test_EmbeddedR.py === --- branches/rpy_nextgen/rpy/rinterface/tests/test_EmbeddedR.py 2008-07-24 14:02:34 UTC (rev 591) +++ branches/rpy_nextgen/rpy/rinterface/tests/test_EmbeddedR.py 2008-07-24 14:09:54 UTC (rev 592) @@ -20,8 +20,12 @@ self.assertEquals('[1] "3"\n', str.join('', buf)) rinterface.setWriteConsole(rinterface.consolePrint) +def testCallWhenEndedR(self): +t = rinterface.baseNameSpaceEnv['date'] +rinterface.endEmbeddedR(1) +self.assertRaises(RuntimeError, t) +rinterface.initEmbeddedR() - def suite(): suite = unittest.TestLoader().loadTestsFromTestCase(EmbeddedRTestCase) return suite This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ___ rpy-list mailing list rpy-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rpy-list
[Rpy] SF.net SVN: rpy:[590] trunk/htdocs
Revision: 590 http://rpy.svn.sourceforge.net/rpy/?rev=590&view=rev Author: lgautier Date: 2008-07-24 13:17:52 + (Thu, 24 Jul 2008) Log Message: --- Added page for rpy2 Modified Paths: -- trunk/htdocs/Makefile trunk/htdocs/template.html Added Paths: --- trunk/htdocs/rpy2.data Modified: trunk/htdocs/Makefile === --- trunk/htdocs/Makefile 2008-07-24 10:01:52 UTC (rev 589) +++ trunk/htdocs/Makefile 2008-07-24 13:17:52 UTC (rev 590) @@ -2,7 +2,8 @@ SRC = news.data documentation.data download.data \ faq.data index.data todo.data bugs.data maillist.data \ - svn.data plotting-with-RPy.data rpy_demo.data contacts.data + svn.data plotting-with-RPy.data rpy_demo.data contacts.data \ + rpy2.data TARGETS = $(addsuffix .html,$(basename $(SRC))) Added: trunk/htdocs/rpy2.data === --- trunk/htdocs/rpy2.data (rev 0) +++ trunk/htdocs/rpy2.data 2008-07-24 13:17:52 UTC (rev 590) @@ -0,0 +1,43 @@ + + + + + + About + + + rpy2 is a rewrite of rpy. +Despite it's short existence it is working reasonably reliably and as +expected, as a number of unit-tests seem to indicate it. + + + + + + Documentation + + +Most of the features are documented as Python docstrings, as well as in +the more detailled documention. +Instructions such as how to download or install it are available in +that documentation. + + + + + + Download + + +The files are on the +http://sourceforge.net/project/showfiles.php?group_id=48422&package_id=277454";>Sourceforge download page. + + + +The source for the SVN version can be retrieved with: + +svn co https://rpy.svn.sourceforge.net/svnroot/rpy/branches/rpy_nextgen + + + + Modified: trunk/htdocs/template.html === --- trunk/htdocs/template.html 2008-07-24 10:01:52 UTC (rev 589) +++ trunk/htdocs/template.html 2008-07-24 13:17:52 UTC (rev 590) @@ -39,7 +39,6 @@ About -http://rpy.wiki.sourceforge.net/";>Wiki NEW! Bugs SVN Download @@ -48,8 +47,10 @@ FAQ Mail List News +rpy2 NEW! To do http://sourceforge.net/projects/rpy";>SourceForge +http://rpy.wiki.sourceforge.net/";>Wiki NEW! @@ -96,16 +97,16 @@ + + - RPy (R from Python) + $title$ - - - - $title$ + $data$ + This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ___ rpy-list mailing list rpy-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rpy-list
[Rpy] SF.net SVN: rpy:[593] branches/rpy_nextgen
Revision: 593 http://rpy.svn.sourceforge.net/rpy/?rev=593&view=rev Author: lgautier Date: 2008-07-24 19:30:38 + (Thu, 24 Jul 2008) Log Message: --- renamed rlike.container.NamedList to rlike.container.ArgsDict Modified Paths: -- branches/rpy_nextgen/NEWS branches/rpy_nextgen/rpy/rlike/container.py branches/rpy_nextgen/rpy/rlike/tests/test_container.py Modified: branches/rpy_nextgen/NEWS === --- branches/rpy_nextgen/NEWS 2008-07-24 14:09:54 UTC (rev 592) +++ branches/rpy_nextgen/NEWS 2008-07-24 19:30:38 UTC (rev 593) @@ -9,7 +9,7 @@ - package for R-like features in Python -- module :mod:`rpy2.rlike.container` with the class :class:`NamedList`. +- module :mod:`rpy2.rlike.container` with the class :class:`ArgsDict`. :mod:`rpy2.rinterface`: Modified: branches/rpy_nextgen/rpy/rlike/container.py === --- branches/rpy_nextgen/rpy/rlike/container.py 2008-07-24 14:09:54 UTC (rev 592) +++ branches/rpy_nextgen/rpy/rlike/container.py 2008-07-24 19:30:38 UTC (rev 593) @@ -1,4 +1,4 @@ -class NamedList(dict): +class ArgsDict(dict): """ Implements the Ordered Dict API defined in PEP 372. When `odict` becomes part of collections, this class should inherit from it rather than from `dict`. @@ -16,11 +16,11 @@ def __init__(self, c=[]): if isinstance(c, dict): -#FIXME: allow instance from NamedList ? +#FIXME: allow instance from ArgsDict ? raise ValueError('A regular dictionnary does not ' +\ 'conserve the order of its keys.') -super(NamedList, self).__init__() +super(ArgsDict, self).__init__() self.__l = [] l = self.__l @@ -37,7 +37,7 @@ def __getitem__(self, key): if key is None: raise ValueError("Unnamed items cannot be retrieved by key.") -i = super(NamedList, self).__getitem__(key) +i = super(ArgsDict, self).__getitem__(key) return self.__l[i][1] def __iter__(self): @@ -79,7 +79,7 @@ self.__l[i] = (key, value) else: self.__l.append((key, value)) -super(NamedList, self).__setitem__(key, len(self.__l)-1) +super(ArgsDict, self).__setitem__(key, len(self.__l)-1) def byindex(self, i): """ Fetch a value by index (rank), rather than by key.""" @@ -87,7 +87,7 @@ def index(self, k): """ Return the index (rank) for the key 'k' """ -return super(NamedList, self).__getitem__(k) +return super(ArgsDict, self).__getitem__(k) def items(self): """ Return an ordered list of all key/value pairs """ @@ -106,11 +106,11 @@ l[i] = l[n-i-1] kv = l[i] if kv is not None: -super(NamedList, self).__setitem__(kv[0], i) +super(ArgsDict, self).__setitem__(kv[0], i) l[n-i-1] = tmp kv = tmp if kv is not None: -super(NamedList, self).__setitem__(kv[0], n-i-1) +super(ArgsDict, self).__setitem__(kv[0], n-i-1) def sort(self, cmp=None, key=None, reverse=False): Modified: branches/rpy_nextgen/rpy/rlike/tests/test_container.py === --- branches/rpy_nextgen/rpy/rlike/tests/test_container.py 2008-07-24 14:09:54 UTC (rev 592) +++ branches/rpy_nextgen/rpy/rlike/tests/test_container.py 2008-07-24 19:30:38 UTC (rev 593) @@ -2,16 +2,16 @@ import itertools import rpy2.rlike.container as rlc -class NamedListTestCase(unittest.TestCase): +class ArgsDictTestCase(unittest.TestCase): def testNew(self): -nl = rlc.NamedList() +nl = rlc.ArgsDict() x = (('a', 123), ('b', 456), ('c', 789)) -nl = rlc.NamedList(x) +nl = rlc.ArgsDict(x) def testLen(self): -x = rlc.NamedList() +x = rlc.ArgsDict() self.assertEquals(0, len(x)) x['a'] = 2 @@ -20,7 +20,7 @@ self.assertEquals(2, len(x)) def testGetSetitem(self): -x = rlc.NamedList() +x = rlc.ArgsDict() x['a'] = 1 self.assertEquals(1, len(x)) @@ -36,7 +36,7 @@ self.assertEquals(1, x.index('b')) def testGetSetitemWithNone(self): -x = rlc.NamedList() +x = rlc.ArgsDict() x['a'] = 1 x[None] = 2 @@ -49,7 +49,7 @@ self.assertEquals(2, x.index('b')) def testReverse(self): -x = rlc.NamedList() +x = rlc.ArgsDict() x['a'] = 3 x['b'] = 2 x['c'] = 1 @@ -66,7 +66,7 @@ def f(**kwargs): return [k for k in kwargs] -x = rlc.NamedList() +x = rlc.ArgsDict()
[Rpy] Interfacing with Python from R?
Hi everyone, Is it possible to interface with Python using Rpy in like way that RSPython allows you to do? Basically, I'd like to provide an R API for a certain type of novel statistical method implemented in Python without having to rewrite the whole codebase. Thanks, Matias - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/___ rpy-list mailing list rpy-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rpy-list
Re: [Rpy] Interfacing with Python from R?
Scrive Matias Piipari <[EMAIL PROTECTED]>: > Hi everyone, Hi Matias, > > Is it possible to interface with Python using Rpy in like way that RSPython > allows you to do? Basically, I'd like to provide an R API for a certain type > of novel statistical method implemented in Python without having to rewrite > the whole codebase. Sure. You can use RPy in a way very close to RSPython. If your code is not interactive, consider also to source it via r.source() instead of converting each R line into Rpy code. See some examples here: http://rpy.sourceforge.net/rpy_demo.html and, of course, documentation: http://rpy.sourceforge.net/documentation.html Hope this helps! For any questions, feel free to ask the list. regards, Anne > > Thanks, > Matias > - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ___ rpy-list mailing list rpy-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rpy-list
Re: [Rpy] Interfacing with Python from R?
I'm sorry, my question was unclear. What I actually meant was interfacing with Python code from inside the R interpreter (RSPython and some other R bridges from other languages allows one to do this). In other words, I'd like to use my existing Python code underneath and merely expose an R API for the functionality without having to write it all in R. On Thu, Jul 24, 2008 at 10:16 PM, Anne Ghisla < [EMAIL PROTECTED]> wrote: > Scrive Matias Piipari <[EMAIL PROTECTED]>: > > > Hi everyone, > > Hi Matias, > > > > > Is it possible to interface with Python using Rpy in like way that > RSPython > > allows you to do? Basically, I'd like to provide an R API for a certain > type > > of novel statistical method implemented in Python without having to > rewrite > > the whole codebase. > > Sure. You can use RPy in a way very close to RSPython. If your code is not > interactive, consider also to source it via > r.source() > instead of converting each R line into Rpy code. > > See some examples here: > http://rpy.sourceforge.net/rpy_demo.html > > and, of course, documentation: > http://rpy.sourceforge.net/documentation.html > > Hope this helps! For any questions, feel free to ask the list. > > regards, > > Anne > > > > > Thanks, > > Matias > > > > > > > - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/___ rpy-list mailing list rpy-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rpy-list
Re: [Rpy] Interfacing with Python from R?
Scrive Matias Piipari <[EMAIL PROTECTED]>: > I'm sorry, my question was unclear. What I actually meant was interfacing > with Python code from inside the R interpreter (RSPython and some other R > bridges from other languages allows one to do this). In other words, I'd > like to use my existing Python code underneath and merely expose an R API > for the functionality without having to write it all in R. I understand (and I read your email a bit too fast :)) Unfortunately, RPy doesn't allow R code to run Python code yet. Hope will be implemented soon. regards, Anne > > On Thu, Jul 24, 2008 at 10:16 PM, Anne Ghisla < > [EMAIL PROTECTED]> wrote: > > > Scrive Matias Piipari <[EMAIL PROTECTED]>: > > > > > Hi everyone, > > > > Hi Matias, > > > > > > > > Is it possible to interface with Python using Rpy in like way that > > RSPython > > > allows you to do? Basically, I'd like to provide an R API for a certain > > type > > > of novel statistical method implemented in Python without having to > > rewrite > > > the whole codebase. > > > > Sure. You can use RPy in a way very close to RSPython. If your code is not > > interactive, consider also to source it via > > r.source() > > instead of converting each R line into Rpy code. > > > > See some examples here: > > http://rpy.sourceforge.net/rpy_demo.html > > > > and, of course, documentation: > > http://rpy.sourceforge.net/documentation.html > > > > Hope this helps! For any questions, feel free to ask the list. > > > > regards, > > > > Anne > > > > > > > > Thanks, > > > Matias > > > > > > > > > > > > > > - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ___ rpy-list mailing list rpy-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rpy-list
Re: [Rpy] Interfacing with Python from R?
That's a shame... I've unsuccessfully tried to run RSPython on my Macbook for the last few days and got as far as changing the configure script enough to make it compile (doesn't run yet though). It's probably not worth the effort as it seems to be completely unmaintained for a long time and requires suspiciously old versions of R and Python. Please, please someone implement the R-->Python part of the bridge too :) On Thu, Jul 24, 2008 at 10:32 PM, Anne Ghisla < [EMAIL PROTECTED]> wrote: > Scrive Matias Piipari <[EMAIL PROTECTED]>: > > > I'm sorry, my question was unclear. What I actually meant was interfacing > > with Python code from inside the R interpreter (RSPython and some other R > > bridges from other languages allows one to do this). In other words, I'd > > like to use my existing Python code underneath and merely expose an R API > > for the functionality without having to write it all in R. > > I understand (and I read your email a bit too fast :)) > Unfortunately, RPy doesn't allow R code to run Python code yet. Hope will > be > implemented soon. > > regards, > > Anne > > > > > On Thu, Jul 24, 2008 at 10:16 PM, Anne Ghisla < > > [EMAIL PROTECTED]> wrote: > > > > > Scrive Matias Piipari <[EMAIL PROTECTED]>: > > > > > > > Hi everyone, > > > > > > Hi Matias, > > > > > > > > > > > Is it possible to interface with Python using Rpy in like way that > > > RSPython > > > > allows you to do? Basically, I'd like to provide an R API for a > certain > > > type > > > > of novel statistical method implemented in Python without having to > > > rewrite > > > > the whole codebase. > > > > > > Sure. You can use RPy in a way very close to RSPython. If your code is > not > > > interactive, consider also to source it via > > > r.source() > > > instead of converting each R line into Rpy code. > > > > > > See some examples here: > > > http://rpy.sourceforge.net/rpy_demo.html > > > > > > and, of course, documentation: > > > http://rpy.sourceforge.net/documentation.html > > > > > > Hope this helps! For any questions, feel free to ask the list. > > > > > > regards, > > > > > > Anne > > > > > > > > > > > Thanks, > > > > Matias > > > > > > > > > > > > > > > > > > > > > > > > > > - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/___ rpy-list mailing list rpy-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rpy-list
Re: [Rpy] Interfacing with Python from R?
2008/7/24 Matias Piipari <[EMAIL PROTECTED]>: > That's a shame... I've unsuccessfully tried to run RSPython on my Macbook > for the last few days and got as far as changing the configure script enough > to make it compile (doesn't run yet though). It's probably not worth the > effort as it seems to be completely unmaintained for a long time and > requires suspiciously old versions of R and Python. Please, please someone > implement the R-->Python part of the bridge too :) Unless someone steps forward to help, design and implementation of an R->Python interface may have to wait... > On Thu, Jul 24, 2008 at 10:32 PM, Anne Ghisla > <[EMAIL PROTECTED]> wrote: >> >> Scrive Matias Piipari <[EMAIL PROTECTED]>: >> >> > I'm sorry, my question was unclear. What I actually meant was >> > interfacing >> > with Python code from inside the R interpreter (RSPython and some other >> > R >> > bridges from other languages allows one to do this). In other words, I'd >> > like to use my existing Python code underneath and merely expose an R >> > API >> > for the functionality without having to write it all in R. >> >> I understand (and I read your email a bit too fast :)) >> Unfortunately, RPy doesn't allow R code to run Python code yet. Hope will >> be >> implemented soon. >> >> regards, >> >> Anne >> >> > >> > On Thu, Jul 24, 2008 at 10:16 PM, Anne Ghisla < >> > [EMAIL PROTECTED]> wrote: >> > >> > > Scrive Matias Piipari <[EMAIL PROTECTED]>: >> > > >> > > > Hi everyone, >> > > >> > > Hi Matias, >> > > >> > > > >> > > > Is it possible to interface with Python using Rpy in like way that >> > > RSPython >> > > > allows you to do? Basically, I'd like to provide an R API for a >> > > > certain >> > > type >> > > > of novel statistical method implemented in Python without having to >> > > rewrite >> > > > the whole codebase. >> > > >> > > Sure. You can use RPy in a way very close to RSPython. If your code is >> > > not >> > > interactive, consider also to source it via >> > > r.source() >> > > instead of converting each R line into Rpy code. >> > > >> > > See some examples here: >> > > http://rpy.sourceforge.net/rpy_demo.html >> > > >> > > and, of course, documentation: >> > > http://rpy.sourceforge.net/documentation.html >> > > >> > > Hope this helps! For any questions, feel free to ask the list. >> > > >> > > regards, >> > > >> > > Anne >> > > >> > > > >> > > > Thanks, >> > > > Matias >> > > > >> > > >> > > >> > > >> > > >> > > >> > >> >> >> >> > > > - > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > ___ > rpy-list mailing list > rpy-list@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/rpy-list > > - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ___ rpy-list mailing list rpy-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rpy-list