我的公司最近签下了吉顿企业的合同。我正在把我闪亮的应用程序移到那里,不太清楚如何启动这个应用程序。
函数runGitHub调用:https://github.com/repoName,但我需要它指向:https://github.companyName.org/repoName
这个是可能的吗?干杯
发布于 2017-11-24 08:27:27
阅读有关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开发人员使用默认github.com的“主机”参数。或者只需创建URL并调用runUrl即可。
https://stackoverflow.com/questions/47468264
复制相似问题