2014-10-06 39 views
7

我在R中有一个闪亮的程序,效果很好。但是我在将它部署到shinyapps.io时遇到了问题。shinyapps.io和github软件包

的JavaScript错误控制台给我下面的错误:

Listening on http://127.0.0.1:46574 
    Downloading github repo jlisic/[email protected] 
    Installing saAlloc 
    '/usr/lib/R/bin/R' --vanilla CMD INSTALL \ 
    '/tmp/RtmpvmoFM3/devtools2c6b564aad/jlisic-saAlloc-62692fc' \ 
    --library='/usr/local/lib/R/site-library' --install-tests 

Error: ERROR: no permission to install to directory ‘/usr/local/lib/R/site-library’ 
Error : Command failed (1) 

没有什么花哨的关于我的包,它只是有一个默认Makevars文件。任何帮助或建议,将不胜感激。

+0

是你包在GitHub上公开? – 2014-10-06 19:43:44

+0

是https://github.com/jlisic/saAlloc – 2014-10-06 19:49:12

+2

这个问题依然存在,这是非常成问题的。 – ambodi 2016-05-08 09:31:08

回答

4

我也一直在努力解决这个问题,我刚刚在@Yihui的shinyapps.io Google用户组中找到了一个可行的答案。引用他的帖子:

You should not install the package inside your app (i.e. do not call install_github() in your app code). Just install it locally, and shinyapps.io will figure out how to install it on the server.

https://groups.google.com/d/msg/shinyapps-users/5S8jTJ-SeHM/HCPGUjYVUM4J

卸下devtools::install_github()线server.R为我工作。后端魔法!

编辑:之所以这个作品更详细的这个rsconnect问题进行了说明:https://github.com/rstudio/rsconnect/issues/88