2
library(devtools)
install_bitbucket("readlicor","remkoduursma")

正常に動作します!でも:

install_bitbucket("GasExchangeR","remkoduursma")

そうではなく、以下を探しているようです:

bitbucket.org/remkoduursma/GasExchangeR/get/master.zip

しかし、そのページは存在しません。代わりに:

bitbucket.org/remkoduursma/gasexchanger/get/master.zip

ある。

回避策はありますか (すべてのパッケージの名前を小文字に変更する以外に)、それともバグですか?

ありがとうレムコ

4

1 に答える 1

2

これが で修正されるのを待っている間、これが慣例である場合devtoolsは、関数を再定義しrepoてすべて小文字に変更できます。bitbucket

install_bitbucket <- function (repo, username, ref = "master", branch = NULL, ...) {
  if (!is.null(branch)) {
    warning("'branch' is deprecated. In the future, please use 'ref' instead.")
    ref <- branch
  }

  repo <- tolower(repo)
  message("Installing bitbucket repo(s) ", paste(repo, ref, 
                                                 sep = "/", collapse = ", "), " from ", paste(username, 
                                                                                              collapse = ", "))
  url <- paste("https://bitbucket.org/", username, "/", repo, 
               "/get/", ref, ".zip", sep = "")
  install_url(url, paste(ref, ".zip", sep = ""), ...)
}

この変更を行うためにプルリクエストを送信しました。devtools

于 2012-10-19T02:51:38.340 に答える