Closed g-pires closed 1 year ago
devtools::install_git()
is actually just remotes::install_git()
, so I'm going to transfer this issue to that repo.
@g-pires We are focusing on the development of pak now, please try this with pak (see https://pak.r-lib.org/reference/install.html for installation).
This works fine for two of my private repos:
β― pak::pkg_install("git::https://github.com/gaborcsardi/private")
β Will install 1 package.
β Will download 1 package with unknown size.
+ private 0.0.0.9000 π·πΎπ§ β¬
βΉ Getting 1 pkg with unknown size
β Got private 0.0.0.9000 (source) (96 B)
β Downloaded 1 package (96 B) in 471ms
βΉ Packaging private 0.0.0.9000
β Packaged private 0.0.0.9000 (964ms)
βΉ Building private 0.0.0.9000
β Built private 0.0.0.9000 (546ms)
β Installed private 0.0.0.9000 (git::https://github.com/gaborcsardi/private@eb2fead) (16ms)
β 1 pkg: added 1, dld 1 (NA B) [4.5s]
β― pak::pkg_install("git::https://github.com/gaborcsardi/installlite")
β Will install 1 package.
β Will download 1 package with unknown size.
+ installlite 0.0.0.9000 π·πΌββοΈπ§ β¬
βΉ Getting 1 pkg with unknown size
β Got installlite 0.0.0.9000 (source) (96 B)
β Downloaded 1 package (96 B) in 567ms
βΉ Packaging installlite 0.0.0.9000
β Packaged installlite 0.0.0.9000 (267ms)
βΉ Building installlite 0.0.0.9000
β Built installlite 0.0.0.9000 (788ms)
β Installed installlite 0.0.0.9000 (git::https://github.com/gaborcsardi/installlite@452b3f1) (18ms)
β 1 pkg: added 1, dld 1 (NA B) [3.6s]
Hello,
Thank you for your quick answers. I finally managed to install both packages.
For those who are still looking for the answer, when you want to install two packages (A and B) from two private repositories hosted on a private instance of gitlab (or github) and B is directly dependant of A, you will have to set an environment variable GITLAB_PAT (or GITHUB_PAT). That way you will be able to install both packages with the following command:
devtools::install_gitlab("username/package@ref", host= "adress-to-private-repo")
Thank you again.
Kind regards,
R FoReveR
Hi,
I've been trying to install two private repositories from gitlab using
devtools::install_git("address-to-private-repo/package.git", credentials = git2r::cred_user_pass("username", getPass::getPass()), ref = "DEV")
I works well with the first package, however when I try ton install a second package (which directly depends on the first one) it fails with this error :
Error: Failed to install 'unknown package' from Git: Error in 'git2r_remote_ls'
After removing the first package I was able to install the second one, but the problem is that the second one directly depends on the first one so it wouldn't install either.
Do you have any idea of why it could throw this error ?
Thanks in advance,
Kind regards.
R FoReveR