Deploy shiny app on shinyapp.io with package in private organization repo

房东的猫 提交于 2019-12-01 10:27:55
user5249203

Create an .Rprofile file in your project folder that you would intend to deploy.

You would need to set that repo options in the .Rprofile. and add your private github link. Something like

# A sample .Rprofile file with two different package repositories.
local({
  r <- getOption("repos")
  r["CRAN"] <- "https://cran.rstudio.com/"
  r["mycompany"] <- "http://rpackages.mycompany.com/"
  options(repos = r)
})

This is well explained here. Package management in RStudio Connect.

Just in case, I found the above answer to allow for specific corporate repositories, not installing from a private github repo. For that, this link has this to say:

Go to Account >> Profile, then under github LINK the accounts, and allow private repo access.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!