繁体   English   中英

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

[英]rPython package fails to install on R Shiny shinyapps.io

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

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 ...

相关: 是否可以在R闪亮运行python脚本

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

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

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM