2017-11-24 4 views
1

私の会社は最近Githubエンタープライズに登録しました。私はそこに私のシャイニーのアプリケーションを移動するプロセスで、かなりアプリを起動する方法を見つけることができません。 https://github.com/repoNameが、私は何とかそれを指すように必要があります:Github EnterpriseレポにあるR Shinyアプリを実行できますか?

機能runGitHub呼び出し https://github.companyName.org/repoName

これは可能ですか? runGitHubのヘルプを読んでから、 乾杯

答えて

2

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に電話してください。

+0

ありがとうございました。あなたのアイデアを提案します – Mark

関連する問題