【发布时间】:2018-07-21 17:18:52
【问题描述】:
我知道 google colaboratory 还不支持 R 内核。 rmagic呢?我可以使用rpy2吗?
我试过了:
!pip install rpy2==2.8.6
得到了:
Collecting rpy2==2.8.6
Using cached https://files.pythonhosted.org/packages/32/54/d102eec14f9cabd0df60682a38bd45c36169a1ec8fb8a690bf436cb6d758/rpy2-2.8.6.tar.gz
Complete output from command python setup.py egg_info:
Error: Tried to guess R's HOME but no command 'R' in the PATH.
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-3bSiiD/rpy2/
我猜它不起作用,因为 R 没有安装在运行此笔记本的任何云计算机上,并且可能无法安装它。但我希望我错了,有人可能知道解决方法。
【问题讨论】: