【发布时间】:2013-06-08 12:17:38
【问题描述】:
我想使用 django 应用程序中的 R。现在我一团糟。
--> 我已经为此安装了 rpy2。 ---> 我可以从 Python IDE 运行一切 例如。
import rpy2.rinterface as rinterface
rinterface.initr()
或
import rpy2.robjects as something
当我从 cmd 或 django 文件中打开 Python 时,我收到错误 R_USER not defined
我可以编写单独的 .py 文件并访问 R,但不能从 django 和 python shell 访问。
请帮帮我!!!!
或者请告诉我还能用什么来从 Python 调用 R 函数
【问题讨论】:
标签: django r python-2.7 rpy2