Shiny runExample Error - 无法创建服务器

Bti*_*rt3 10 r localhost shiny

我试图玩,Shiny并试图运行基本的开箱即用的例子.没有骰子.

我试图谷歌问题,但一切似乎解决了在外部服务器上运行它时的问题.

也许我错了,但我认为这个应用程序将在我的浏览器中运行localhost.

这是我做的:

install.packages("shiny")
library(shiny)
runExample("01_hello")
Run Code Online (Sandbox Code Playgroud)

这是错误:

> runExample("01_hello")

Listening on port 8100
Error in startServer("0.0.0.0", port, httpuvCallbacks) : 
  Failed to create server
Run Code Online (Sandbox Code Playgroud)

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

> 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 
Run Code Online (Sandbox Code Playgroud)

小智 7

此错误可能是因为端口被阻塞.

我在端口3259上运行闪亮的服务器.我出于某种原因杀了服务器,当我试图再次启动时,我看到了这个错误.

startServer出错("0.0.0.0",port,httpuvCallbacks):无法创建服务器调用:runApp - > startAppDir - > startApp - > startServer

要解决此问题,您可以先找到阻止端口的进程.首先使用netstat查看阻塞端口的进程

netstat -anp | grep:3259 [[:blank:]]

然后杀死那个过程


Bti*_*rt3 5

@Hadley最后评论重新安装shinyhttpuv完成了这个伎俩.

 devtools::install_github(c("shiny", "httpuv"), "rstudio") 
Run Code Online (Sandbox Code Playgroud)