【发布时间】:2016-05-08 20:12:01
【问题描述】:
我已经按照here 的步骤在我的本地机器上安装了 Shiny Server。
我还设法让默认示例应用程序在 http://127.0.0.1:3838/sample-apps/hello/ 运行
但是当我想运行我一直在 RStduio 上工作的应用程序时,我收到了这个错误,
发生错误
应用程序启动失败。
应用程序在初始化期间退出。
库中的错误(plyr):没有名为“plyr”的包调用: runApp ... sourceUTF8 -> eval -> eval -> ..stacktraceon.. -> 库 执行停止
我已经通过 RStudio 安装了所有的包,它们都在这个目录中,
/home/tealou/R/x86_64-pc-linux-gnu-library/3.2/
我可以看到 plyr 已经安装了。
.../3.2/
plyr/
但是为什么Shiny Server没有提取上面目录中的包呢?
那么我应该在哪里安装服务器的软件包?以及如何?
有什么想法吗?
编辑:
# Instruct Shiny Server to run applications as the user "shiny"
run_as shiny;
# Define a server that listens on port 3838
server {
listen 3838;
# Define a location at the base URL
location / {
# Host the directory of Shiny Apps stored in this directory
site_dir /srv/shiny-server;
# Log all Shiny output to files in this directory
log_dir /var/log/shiny-server;
# When a user visits the base URL rather than a particular application,
# an index of the applications available in this directory will be shown.
directory_index on;
PATH=/home/tealou/R/x86_64-pc-linux-gnu-library/3.2/
}
}
【问题讨论】:
标签: r shiny-server shiny