2014-10-06 37 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