Re: [R] Using R and Python together

2017-04-04 Thread Kankana Shukla
Installation of pyper gives me error code 1. I used pip install on my ubuntu machine. How to install Pyper correctly? Here is the debug log file: /usr/bin/pip run on Tue Apr 4 15:07:58 2017 Downloading/unpacking pyper Getting page

Re: [R] Using R and Python together

2017-03-31 Thread Wensui Liu
In https://statcompute.wordpress.com/?s=rpy2, you can find examples of rpy2. In https://statcompute.wordpress.com/?s=pyper, you can find examples of pyper. On Fri, Mar 31, 2017 at 11:38 AM, Kankana Shukla wrote: > I'm not great at rpy2. Are there any good examples I could see to learn > how to

Re: [R] Using R and Python together

2017-03-31 Thread Kankana Shukla
I'm not great at rpy2. Are there any good examples I could see to learn how to do that? My R code is very long and complicated. On Fri, Mar 31, 2017 at 7:08 AM, Stefan Evert wrote: > > > On 30 Mar 2017, at 23:37, Kankana Shukla wrote: > > > > I have searched for examples using R and Python to

Re: [R] Using R and Python together

2017-03-31 Thread Stefan Evert
> On 30 Mar 2017, at 23:37, Kankana Shukla wrote: > > I have searched for examples using R and Python together, and rpy2 seems > like the way to go, but is there another (easier) way to do it? Rpy2 would seem to be a very easy and convenient solution. What do you need that can't easily be do

Re: [R] Using R and Python together

2017-03-30 Thread Ulrik Stervbo
'Snakemake' (https://snakemake.readthedocs.io/en/stable/) was created to ease pipelines through different tools so it might be useful. In all honesty I only know of Snakemake, so it might be the completely wrong horse. HTH Ulrik On Fri, 31 Mar 2017 at 06:01 Wensui Liu wrote: > How about pyper?

Re: [R] Using R and Python together

2017-03-30 Thread Wensui Liu
How about pyper? On Thu, Mar 30, 2017 at 10:42 PM Kankana Shukla wrote: > Hello, > > I am running a deep neural network in Python. The input to the NN is the > output from my R code. I am currently running the python script and calling > the R code using a subprocess call, but this does not all

[R] Using R and Python together

2017-03-30 Thread Kankana Shukla
Hello, I am running a deep neural network in Python. The input to the NN is the output from my R code. I am currently running the python script and calling the R code using a subprocess call, but this does not allow me to recursively change (increment) parameters used in the R code that would be