-
-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
devtools::install_git fails #23
Comments
@bainadeashish What is the value of of # setup
docker run -it --rm condaforge/mambaforge bash
mamba create -n issue-23 r-base=4.0.2 r-devtools
conda activate issue-23
# This works fine
Rscript -e 'devtools::install_git("https://github.com/Rdatatable/data.table.git")'
# An incorrect URL leads to an error
Rscript -e 'devtools::install_git("https//github.com/")'
## Error: Failed to install 'unknown package' from Git:
## Error in 'git2r_remote_ls': unsupported URL protocol
## Execution halted Environment (
Details about conda and system ( conda info ):
|
no value of GIT_URL is correct, same is working fine with cran devtools but fails in r-devtools conda. |
We need a minimal reproducible example to be able to troubleshoot the issue you are having. Could you please run the code below and report back whether or not it successfully runs for you? conda create --yes -n test-install-git --override-channels -c conda-forge r-base=4.0.2 r-devtools
conda activate test-install-git
Rscript -e 'devtools::install_git("https://github.com/HenrikBengtsson/R.utils")'
conda deactivate |
@jdblischak let me try & will update accordingly. |
Its working fine for URL you mentioned but somehow its failing for below URL Replaced actual repo name with GIT_REPO due to security issues. |
OK, great. Thanks for confirming. This is a good sign. It will work for the most standard use case of installing from a public repo.
I don't have any experience with authenticating with a GitLab deploy token. This URL works with devtools installed from CRAN? If yes, my only guess is that there is some difference in the authentication features when installing libgit2. Can you try running Some other ideas to consider:
|
Issue: devtools::install_git fails for below cmd
Environment (
conda list
):Details about
conda
and system (conda info
):The text was updated successfully, but these errors were encountered: