avehtari / ROS-Examples

Regression and other stories R examples
https://avehtari.github.io/ROS-Examples/
325 stars 256 forks source link

Error when installing the R package rosdata from github #114

Closed ericnovik closed 2 years ago

ericnovik commented 2 years ago

I get the following error when trying to install the package:

> remotes::install_github("avehtari/ROS-Examples", subdir = "rpackage")
Using github PAT from envvar GITHUB_PAT
Error: Failed to install 'unknown package' from GitHub:
  HTTP error 401.
  Bad credentials

  Rate limit remaining: 47/60
  Rate limit reset at: 2022-02-22 00:06:23 UTC
avehtari commented 2 years ago

I'm not certain, but guessing that the package is too popular. Can you try again?

ericnovik commented 2 years ago

Just tried it, same message as before.

> sessionInfo()
R version 4.1.0 (2021-05-18)
Platform: x86_64-apple-darwin17.0 (64-bit)
Running under: macOS 12.0.1

Matrix products: default
LAPACK: /Library/Frameworks/R.framework/Versions/4.1/Resources/lib/libRlapack.dylib

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

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

other attached packages:
[1] ggplot2_3.3.5

loaded via a namespace (and not attached):
 [1] Rcpp_1.0.8       pillar_1.7.0     compiler_4.1.0   plyr_1.8.6       remotes_2.4.2   
 [6] tools_4.1.0      digest_0.6.29    bayesplot_1.8.1  evaluate_0.15    lifecycle_1.0.1 
[11] tibble_3.1.6     gtable_0.3.0     pkgconfig_2.0.3  rlang_1.0.1      DBI_1.1.2       
[16] cli_3.2.0        curl_4.3.2       yaml_2.3.5       xfun_0.29        fastmap_1.1.0   
[21] withr_2.4.3      dplyr_1.0.8      knitr_1.37       generics_0.1.2   vctrs_0.3.8     
[26] grid_4.1.0       tidyselect_1.1.2 glue_1.6.1       R6_2.5.1         fansi_1.0.2     
[31] rmarkdown_2.11   farver_2.1.0     purrr_0.3.4      magrittr_2.0.2   scales_1.1.1    
[36] ggridges_0.5.3   ellipsis_0.3.2   htmltools_0.5.2  assertthat_0.2.1 colorspace_2.0-3
[41] labeling_0.4.2   utf8_1.2.2       munsell_0.5.0    crayon_1.5.0   

Perhaps this is something local to my setup. Maybe someone else can try it and report back.

avehtari commented 2 years ago

Works also today for me.

Using github PAT from envvar GITHUB_PAT Error: Failed to install 'unknown package' from GitHub: HTTP error 401. Bad credentials

Can it be related to trying to use PAT, even that is not needed (as it's a public repo)

ericnovik commented 2 years ago

Yes, this was due to GITHUB_PAT; when I unset it, it worked. Sounds like a bug in remotes. If anyone else has this problem , do the following in your current session:

Sys.unsetenv("GITHUB_PAT")