dimanche 5 avril 2015

sending string to R from python

Ok. So I'm studying the R language in class and for the project I want to make a GUI in python that simply sends a string to the R program that I have written. The R program will then use the string as the name of the file I want it to open and use it to do what I have coded. After it has finished it will send the R vectors created back to python so that I can display them in the GUI. What I want to know is how can I send a string from one programming language (python) to another (R)? I have heard of rpy2 but it looks like the R code is being written in the python code which I can't have in my project. I need one python program for the front end and 1 R program for the calculations. Or will it just be much easier to make a GUI in R?


P.s. we are coding using putty to access a server on campus.


Aucun commentaire:

Enregistrer un commentaire