Comments (3)
So my group is not using R with Python, but I would check out some of the links below:
http://heather.cs.ucdavis.edu/~matloff/rpy2.html Tutorial on using R with Python
http://stackoverflow.com/questions/tagged/rpy2 All SO questions tagged with 'rpy2'
http://rpy.sourceforge.net/rpy2/doc-2.3/html/ Documentation for rpy2
And finally, you can install it with sudo pip install rpy2
from questionnaire.
@kqdtran Where possible try using the Ubuntu packages first by installing sudo apt-get install python-rpy2
instead of using pip
. Often there are dependencies that need installed that will be handled by the Ubuntu packaging system.
On the other hand, if you have a specific version requirement for the latest released version then pip
is a good strategy to use. You can check the relative versions and decide which way you need to solve the problem depending on how old the Ubuntu package is compared to the (more recent) pip
version.
For example, for rpy2:
$ dpkg -l python-rpy2
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-=================-=============-=============-========================================
ii python-rpy2 2.3.1-2 amd64 Python interface to the GNU R language a
$ pip search rpy2
rpy2 - Python interface to the R language (embedded R)
INSTALLED: 2.3.1
LATEST: 2.3.8
In this example the version available for Ubuntu 13.10 is rpy 2.3.1 and the pip version is only slightly more recent with a minor revision update of 2.3.8, so installing the Ubuntu package is more likely to be reproducible because the next time you do a pip install it may be a much later version, whereas Ubuntu package versions are relatively much more stable.
Your suggestion was a good one, however I did want to point out this particular distinction to consider.
from questionnaire.
@arifyali Another link to consider beyond the great links that @kqdtran suggested is:
Using R Within the IPython Notebok
from questionnaire.
Related Issues (20)
- How do I undelete a file after deleting git repository and pushing to github? HOT 5
- How to pull up previous ipython file after reopening VM HOT 3
- Help! The original example code in ipython isn't working for me anymore HOT 4
- How to submit the project HOT 3
- Password for sudo/gspread? HOT 1
- Trouble getting curator's code to work. HOT 2
- Going into virtual machine HOT 1
- .cfg file HOT 1
- ipython error HOT 2
- RE: Barriers Group 4 Encountered HOT 1
- Vagrant command issue
- In-Class Questions: Issue for Group 5, from Group 2
- Group 3
- Group 4 HOT 1
- Group 4 Reproducibility Issues HOT 1
- Group 10 Reproducibility Issues
- Group 11 Reproducibility Issues HOT 2
- Issue for Group 5 from Group 4
- Group 1 Reproducibility Issues
- --pylab=inline
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from questionnaire.