Open mabuimo opened 9 months ago
Yes, I can see that this is annoying, but what can remotes do to improve this? remotes::install_git()
uses command line git
, so if that doesn't work, I am not sure what we can do.
Btw. you can also try pak::pkg_install("git::https://...")
, which might work better, or worse.
Hi @gaborcsardi could you elaborate further about what are the core differences between remotes::install_git()
and devtools::install_github
, please?
remotes::install_git()
uses command line git, or the git2r package. devtools::install_github()
and remotes::install_github()
(which is the same, effectively) use the GitHub API through HTTP.
install_git should take a URL, not a username/repo pair: Try
remotes::install_git("https://github.com/hrbrmstr/streamgraph.git")
I am coming from here. I have observed an extremely annoying issue in corporate environments (Windows 11):
if you are using
options(download.file.method = "auto")
there is no chance that you will be able to install a package directly from GitHub, For instance,devtools::install_github("hrbrmstr/streamgraph
will failIf you use
remotes::install_git("hrbrmstr/streamgraph")
you getIf now you run
options(download.file.method = "wininet")
but....
devtools::install_github("hrbrmstr/streamgraph")
is successful!!