How to install library(ggoxford) ?

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 ? :thinking:

Smells like a connection problem. I just successfully installed with

devtools::install_github("schliebs/ggoxford")
1 Like

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

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

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.