Open miyesa opened 1 year ago
I get this same issue moving from R 4.2.2 to 4.3.1. With a clean project and fresh install of git2r, I can use ssh in 4.2.2 and not 4.3.1. For completeness, my results for git2r::libgit2_features()
and sessionInfo()
are below.
> git2r::libgit2_features()
$threads
[1] TRUE
$https
[1] TRUE
$ssh
[1] FALSE
> sessionInfo()
R version 4.3.1 (2023-06-16 ucrt)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 11 x64 (build 22621)
Matrix products: default
locale:
[1] LC_COLLATE=English_Australia.utf8 LC_CTYPE=English_Australia.utf8
[3] LC_MONETARY=English_Australia.utf8 LC_NUMERIC=C
[5] LC_TIME=English_Australia.utf8
time zone: Australia/Sydney
tzcode source: internal
attached base packages:
[1] stats graphics grDevices datasets utils methods base
loaded via a namespace (and not attached):
[1] compiler_4.3.1 tools_4.3.1 git2r_0.32.0 renv_1.0.0
> git2r::libgit2_features()
$threads
[1] TRUE
$https
[1] TRUE
$ssh
[1] TRUE
> sessionInfo()
R version 4.2.2 (2022-10-31 ucrt)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 22621)
Matrix products: default
locale:
[1] LC_COLLATE=English_Australia.utf8 LC_CTYPE=English_Australia.utf8
[3] LC_MONETARY=English_Australia.utf8 LC_NUMERIC=C
[5] LC_TIME=English_Australia.utf8
attached base packages:
[1] stats graphics grDevices datasets utils methods base
loaded via a namespace (and not attached):
[1] compiler_4.2.2 tools_4.2.2 git2r_0.32.0 renv_1.0.0
I am trying to clone a private repo in R using Rstudio with git2r and I am getting the following error:
The credentials variable used in the function
git2r::clone()
is the following,creds <- try(git2r::cred_ssh_key(git2r::ssh_path("id_rsa.pub"), git2r::ssh_path("id_rsa")), silent = T)
I need to clone the repo and install different packages from the repo. I am trying to do so by using SSH keys.
I was able to do this before, I changed from R-4.1.3 to R-4.3.1 and installed the same R packages with corresponding version with renv package, I also tried installing the latest versions of packages.
The only difference I can see now is when running git2r::libgit2_features() I get the following,
In R-4.3.1 I get the following:
In R-4.1.3 I get the following:
Is there a way to change ssh to True. I am using Windows 10, found some examples of how to do this in Linux but not in windows.
If I switch back to the old version of R (R-4.1.3) I can clone the private repo without any issues.
Session info after successfully cloning private repo (R-4.1.3) and when getting error (R-4.3.1): R-4.1.3 and R-4.3.1 (with same packages version)
R-4.1.3
R-4.3.1
Also Session Info with R-4.3.1 with latest version of packages:
R-4.3.1 (with latest packages)