rPython软件包无法在R Shiny Shinyapps.io上安装

Shinyapps.io服务器是否未安装python?由于rPython软件包无法安装,因此需要安装python.如果答案是否定的,我觉得很奇怪,因为RStudio本身具有python support.

Shinyapps.io服务器是否支持python或有解决方法?我想要我发布的闪亮应用程序调用python脚本.

下面,即使在本地安装rPython时,在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

解决方法:

通常,在Shinyapps.io上安装了python,但这并不意味着rPython可以正常工作,或者您将能够执行脚本(取决于所需的python软件包).

尽管python本身可以工作,但我们不安装scipy / numpy,也不支持安装自定义python软件包.

上一篇:javascript-应用之间的R闪亮构建链接


下一篇:javascript-从server.R中的.js接收数据