muschellij2 / extrantsr

R Package to build on ANTsR
GNU General Public License v3.0
6 stars 3 forks source link

An Error when installing the extrantsr #9

Closed Byronxy closed 5 years ago

Byronxy commented 5 years ago

I run this code for installing

devtools::install_github("muschellij2/extrantsr")

It comes up with an error

HTTP error 403.
  API rate limit exceeded for 113.240.172.2. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)

  Rate limit remaining: 0/60
  Rate limit reset at: 2019-01-28 13:34:05 UTC

  To increase your GitHub API rate limit
  - Use `usethis::browse_github_pat()` to create a Personal Access Token.
  - Use `usethis::edit_r_environ()` and add the token as `GITHUB_PAT`.

I'm wondering how to solve this problem. Thanks a lot!

sessionInfo()
R version 3.4.4 (2018-03-15)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 18.04 LTS

Matrix products: default
BLAS: /usr/lib/x86_64-linux-gnu/openblas/libblas.so.3
LAPACK: /usr/lib/x86_64-linux-gnu/libopenblasp-r0.2.20.so

locale:
 [1] LC_CTYPE=zh_CN.UTF-8       LC_NUMERIC=C              
 [3] LC_TIME=zh_CN.UTF-8        LC_COLLATE=zh_CN.UTF-8    
 [5] LC_MONETARY=zh_CN.UTF-8    LC_MESSAGES=zh_CN.UTF-8   
 [7] LC_PAPER=zh_CN.UTF-8       LC_NAME=C                 
 [9] LC_ADDRESS=C               LC_TELEPHONE=C            
[11] LC_MEASUREMENT=zh_CN.UTF-8 LC_IDENTIFICATION=C       

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] rgl_0.99.16

loaded via a namespace (and not attached):
 [1] Rcpp_1.0.0              compiler_3.4.4          later_0.7.5            
 [4] prettyunits_1.0.2       remotes_2.0.2           tools_3.4.4            
 [7] digest_0.6.18           pkgbuild_1.0.2          pkgload_1.0.2          
[10] jsonlite_1.6            memoise_1.1.0           rlang_0.3.1            
[13] shiny_1.2.0             cli_1.0.1               crosstalk_1.0.0        
[16] curl_3.3                xfun_0.4                withr_2.1.2            
[19] knitr_1.21              desc_1.2.0              fs_1.2.6               
[22] htmlwidgets_1.3         devtools_2.0.1          manipulateWidget_0.10.0
[25] rprojroot_1.3-2         webshot_0.5.1           glue_1.3.0             
[28] R6_2.3.0                processx_3.2.1          tcltk_3.4.4            
[31] sessioninfo_1.1.1       callr_3.1.1             magrittr_1.5           
[34] backports_1.1.3         ps_1.3.0                promises_1.0.1         
[37] htmltools_0.3.6         usethis_1.4.0           assertthat_0.2.0       
[40] mime_0.6                xtable_1.8-3            httpuv_1.4.5.1         
[43] miniUI_0.1.1.1          crayon_1.3.4    
Byronxy commented 5 years ago

I reran the code for installing for a while and successfully installed the package

muschellij2 commented 5 years ago

The error is from devtools, and install_github - you have hit your limit for the GitHub API. Follow the steps below as well as make sure you have a personal access token: https://github.com/settings/tokens

HTTP error 403.
  API rate limit exceeded for 113.240.172.2. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)

  Rate limit remaining: 0/60
  Rate limit reset at: 2019-01-28 13:34:05 UTC

  To increase your GitHub API rate limit
  - Use `usethis::browse_github_pat()` to create a Personal Access Token.
  - Use `usethis::edit_r_environ()` and add the token as `GITHUB_PAT`.