Hi community
Im want to install library(ggoxford)
by github but show this error:
devtools::install_github("schliebs/ggoxford")
#Downloading GitHub repo schliebs/ggoxford@HEAD
#Error in utils::download.file(url, path, method = method, quiet = quiet, :
#download from 'https://api.github.com/repos/schliebs/ggoxford/tarball/HEAD' failed
remotes::install_github("schliebs/ggoxford")
Downloading GitHub repo schliebs/ggoxford@HEAD
Error in utils::download.file(url, path, method = method, quiet = quiet, :
download from 'https://api.github.com/repos/schliebs/ggoxford/tarball/HEAD' failed
Im try with force=T
, but show the same errors.
Any advance for this ?
Smells like a connection problem. I just successfully installed with
devtools::install_github("schliebs/ggoxford")
1 Like
Gabor
June 16, 2023, 3:36pm
3
Could also be a rate limiting problem. In any case, I would try using the pak package, at least it will give you a better error message:
source("https://pak.r-lib.org/install.R")
pak::pkg_install("schliebs/ggoxford")
1 Like
I though the same but never show this error with any packages.
This was the solution, I'm never use this way for install, tnks!
Was a little time consuming but work well.
source("https://pak.r-lib.org/install.R")
Installing pak from stream stable.
trying URL 'https://r-lib.github.io/p/pak/stable/win.binary/mingw32/x86_64/bin/windows/contrib/4.2/../../../../../../../mingw32/x86_64/pak_0.5.1_R-4-2_x86_64-mingw32.zip'
Content type 'application/zip' length 8408689 bytes (8.0 MB)
downloaded 8.0 MB
The downloaded binary packages are in
C:\Users\user1\AppData\Local\Temp\RtmpIV8xFm\downloaded_packages
> pak::pkg_install("schliebs/ggoxford")
! Using bundled GitHub PAT. Please add your own PAT using `gitcreds::gitcreds_set()`.
✔ Updated metadata database: 5…
✔ Updating metadata database .…
→ Will install 1 package.
→ Will download 1 package with unknown size.
+ ggoxford 0.1.0 [bld][cmp][dl] (GitHub: 25d7897)
ℹ Getting 1 pkg with unknown size
✔ Got ggoxford 0.1.0 (source) (11.50 MB)
✔ Downloaded 1 package (11.50 MB)in 3m 45.4s
ℹ Packaging ggoxford 0.1.0
✔ Packaged ggoxford 0.1.0 (44.2s)
ℹ Building ggoxford 0.1.0
✔ Built ggoxford 0.1.0 (8.4s)
✔ Installed ggoxford 0.1.0 (github::schliebs/ggoxford@25d7897) (1.7s)
✔ 1 pkg + 41 deps: kept 26, added 1, dld 1 (NA B) [5m 6.3s]
> library(ggoxford)
1 Like
Gabor
June 16, 2023, 4:29pm
6
Seems like your internet connection is not very fast, so maybe previously you ran into some download timeout. R's default timeouts are quite short. pak's timeouts are more generous.
1 Like
system
Closed
June 23, 2023, 4:30pm
7
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed. If you have a query related to it or one of the replies, start a new topic and refer back with a link.