rPython包无法在R Shiny shinyapps.io上安装

时间:2015-09-28 19:01:11

标签: python r shiny

shinyapps.io服务器没有安装python吗?因为包rPython无法安装并且需要安装python。如果答案是否定的,我觉得很奇怪,因为RStudio本身有python support

shinyapps.io服务器是否有python支持或是否有解决方法?我希望我发布的闪亮应用程序可以调用python脚本。

在shinyapps.io上的rPython安装下面失败,即使它安装并在本地完成时运行正常(我明显安装了python)。

 rsconnect::showLogs("/home/cornelis/Documents/R Shiny/BrainImageAnalyzer")
    2015-09-28T19:32:32.126565+00:00 shinyapps[61711]:     find, fix
    2015-09-28T19:32:32.126567+00:00 shinyapps[61711]:
    2015-09-28T19:32:32.131509+00:00 shinyapps[61711]:
    2015-09-28T19:32:32.131506+00:00 shinyapps[61711]:
    2015-09-28T19:32:32.131507+00:00 shinyapps[61711]:     sum
    2015-09-28T19:32:34.974927+00:00 shinyapps[61711]: Note: the specification for S3 class “AsIs” in package ‘jsonlite’ seems equivalent to one from package ‘RJSONIO’: not turning on duplicate class definitions for this class.
    2015-09-28T19:32:35.010367+00:00 shinyapps[61711]: Installing package into ‘/usr/local/lib/R/site-library’
    2015-09-28T19:32:35.010369+00:00 shinyapps[61711]: (as ‘lib’ is unspecified)
    2015-09-28T19:32:35.011193+00:00 shinyapps[61711]: Warning in install.packages("rPython") :
    2015-09-28T19:32:35.011195+00:00 shinyapps[61711]:   'lib = "/usr/local/lib/R/site-library"' is not writable
    2015-09-28T19:32:35.012074+00:00 shinyapps[61711]: Error in install.packages("rPython") : unable to install packages ...

相关:Is it possible to run a python script in R shiny

1 个答案:

答案 0 :(得分:3)

一般来说,在shinyapps.io上安装了python,但这并不意味着rPython正常工作,或者你将能够执行你的脚本(取决于你需要的python包)。

虽然python本身可行,但我们不安装scipy / numpy,也不支持安装自定义python包。