我公司最近注册了Github企业。我正在将我的Shiny应用程序移动到那里,并且无法弄清楚如何启动应用程序。
runGitHub函数调用: https://github.com/repoName,但我不知何故需要它指出: https://github.companyName.org/repoName
这可能吗? 干杯
答案 0 :(得分:3)
阅读runGitHub
的帮助:
The functions ‘runGitHub()’ and ‘runGist()’ are
based on ‘runUrl()’
所以解决方案是"使用runUrl()
"。
runGitHub
中的代码已将github.com
硬编码到其中:
function (repo, username = getOption("github.user"), ref = "master",
subdir = NULL, destdir = NULL, ...)
{
if (grepl("/", repo)) {
res <- strsplit(repo, "/")[[1]]
if (length(res) != 2)
stop("'repo' must be of the form 'username/repo'")
username <- res[1]
repo <- res[2]
}
url <- paste("https://github.com/", username, "/", repo,
"/archive/", ref, ".tar.gz", sep = "")
runUrl(url, subdir = subdir, destdir = destdir, ...)
}
如果您的企业github具有相同的路径结构(即/repo/archive/thing.tar.gz
),那么可能建议shiny
开发人员拥有一个&#34;主机&#34;默认为github.com
的参数。或者只需输入网址并致电runUrl
。