闪亮的runExample错误-无法创建服务器 [英] Shiny runExample Error - Fail to create server

查看:145
本文介绍了闪亮的runExample错误-无法创建服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用Shiny,只是尝试运行基本的现成示例.没有骰子.

I am trying to play around with Shiny and simply attempted to run the basic out-of-the-box example. No dice.

我尝试过Google问题,但是在外部服务器上运行该问题时,一切似乎都可以解决.

I attempted to Google the Issue but everything appears to address issues when running it on an external server.

也许我弄错了,但我认为该应用程序可以使用localhost在我的浏览器中运行.

Maybe I am mistaken, but I assumed that this app would run in my browser using localhost.

这是我所做的:

install.packages("shiny")
library(shiny)
runExample("01_hello")

这是错误:

> runExample("01_hello")

Listening on port 8100
Error in startServer("0.0.0.0", port, httpuvCallbacks) : 
  Failed to create server

为了完整起见,这是我的会话信息:

and for completeness sake, here is my session Info:

> sessionInfo()
R version 3.0.1 (2013-05-16)
Platform: x86_64-apple-darwin10.8.0 (64-bit)

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] shiny_0.7.0

loaded via a namespace (and not attached):
[1] bitops_1.0-5  caTools_1.14  digest_0.6.3  httpuv_1.1.0  RJSONIO_1.0-3 tools_3.0.1   xtable_1.7-1 

推荐答案

@哈德利(Hadley)重新安装shinyhttpuv的最后评论起到了作用.

@Hadley's last comment to re-install shiny and httpuv did the trick.

 devtools::install_github(c("shiny", "httpuv"), "rstudio") 

这篇关于闪亮的runExample错误-无法创建服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆