简体   繁体   中英

Failure to load git2r and devtools in R

Somebody else has already asked this question ( I can't load devtools in R 3.2.0 ), but the only answer provided by now has not worked for me.

The suggested answer was to remove git2r and devtools , install Rtools , then install devtools (which will install the dependent git2r ), invoke library(devtools) and then build_github_devtools() .

Although I followed all the steps up to library(devtools) , I still get the same error (and thus cannot load devtools to proceed further). I have tried loading git2r first and receive the same error, from which I conclude that the error is not directly related to devtools , but to the git2r package. I would be grateful for any suggestion.

I was able to load git2r 0.13.1 in R 3.1.2. The older versions are at:

https://cran.r-project.org/src/contrib/Archive/git2r

Use command:

wget "https://cran.r-project.org/src/contrib/Archive/git2r/git2r_0.13.1.tar.gz"

(or the correct version for your version of R)

In R, execute command:

install.packages('<source directory>/git2r_0.13.1.tar.gz', repos = NULL, type="source")

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM