【问题标题】:r - opencpu - error in executing ocpu_start_app()r - opencpu - 执行 ocpu_start_app() 时出错
【发布时间】:2017-06-27 04:17:57
【问题描述】:

我发现 opencpu 可以替代 Shiny 并开始使用它。我在执行 ocpu_start_app() 时遇到问题。我设法让 ocpu_start_server() 运行得很好。然后我停止了服务器并尝试按照手册执行 ocpu_start_app("rwebapps/stocks") 但我收到此错误:

Error: Application 'rwebapps/stocks' is not installed. Try: opencpu::install_apps('rwebapps/stocks')

我尝试按照 opencpu::install_apps("rwebapps/stocks") 的指示安装应用程序,但又遇到了另一个错误:

Error: Failed to read https://raw.githubusercontent.com/rwebapps/stocks/master/DESCRIPTION. Repsitory does not contain a proper R package.

我阅读并尝试了另一种使用 devtools::install_github("rwebapps/stocks") 安装应用程序包的方法并收到此错误:

Installation failed: Couldn't resolve host name

我认为这是因为我没有互联网连接,但我的互联网连接工作正常。事实上,我使用 install.packages("opencpu") 来安装 opencpu 包,而 'install.packages' 命令需要正确的互联网连接。

有人可以帮忙吗?

我的规格/环境如下:

Operating System: Windows 10 Enterprise 64-bit
Rstudio version:
platform       x86_64-w64-mingw32          
arch           x86_64                      
os             mingw32                     
system         x86_64, mingw32             
status                                     
major          3                           
minor          3.3                         
year           2017                        
month          03                          
day            06                          
svn rev        72310                       
language       R                           
version.string R version 3.3.3 (2017-03-06)
nickname       Another Canoe             
opencpu version:
[1] '2.0.3'
devtools version:
[1] '1.13.2'

【问题讨论】:

    标签: r opencpu


    【解决方案1】:

    您的互联网似乎无法正常工作,或者至少无法让您连接到 Github。可以在浏览器中打开the url吗?

    【讨论】:

    • 我可以在浏览器中打开你链接的那个网址。
    猜你喜欢
    • 2018-08-16
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-03-06
    • 1970-01-01
    • 1970-01-01
    • 2014-10-02
    相关资源
    最近更新 更多