Updated on 02/04/2014
Check the Rhome
open Rstudio
>> R.home(component = “home”)
Install rpy2 with Anaconda
I am not sure how other people work on this.
I tried to install rpy2 by this command:
pip install rpy2
but it failed because the error like headline, gcc status, etc..
I also tried to install some dependencies like python-devel, but still, in vain.
Finally, I tried conda install. This magic command always works. That's why I always save it as the last back-up option.
Here you go:
After one year, I found I've spent a lot of useless time in doing this. Lesson learned: never install standalone python package on your own. That's a lot of pain.
Install Rpy on Linux
Written on 02/21/2014
- 下载R的压缩包R-x.y.z.tar.gz并保存到本地:the R archive Web Page
- 在命令行输入 tar xzvf R-x.y.z.tar.gz 解压缩到该文件夹
- 命令行输入 cd R-x.y.z 进入该文件夹
- 命令行输入./configure
- 命令行输入make ,将近 10分钟的编译过程
- 命令行输入make check 保证程序正常安装
- 如果有root的权限,以管理员身份登陆,命令行输入make install 这样主机上所有用户都能使用
- 命令行输入make dvi;make info;make pdf
- 安装完毕
No comments:
Post a Comment