git2r icon indicating copy to clipboard operation
git2r copied to clipboard

Error in `'git2r_clone'` can't clone

Open TanguyBarthelemy opened this issue 7 months ago • 0 comments

Hi,

I try to use {git2r} to clone a repository.

But I encountered an issue:

> library("git2r")
> git_dir <- file.path(tempdir(), "antiword")
> clone("https://github.com/ropensci/antiword", git_dir)
cloning into 'C:\Users\UTZK0M\AppData\Local\Temp\RtmpK6C6dF/antiword'...
Error in clone("https://github.com/ropensci/antiword", git_dir) : 
  Error in 'git2r_clone': failed to send request: Impossible d’établir une connexion avec le serveur

However, when I try to clone with the system() function, I get no error and it works:

> system("git clone https://github.com/ropensci/antiword")
Cloning into 'antiword'...
[1] 0

Do I have to configure something additionally?

Thank you

TanguyBarthelemy avatar Jul 12 '24 13:07 TanguyBarthelemy