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

Reply via email to