DoubleML / doubleml-docs

Documentation and User Guide for DoubleML - Double Machine Learning in Python & R
https://docs.doubleml.org
BSD 3-Clause "New" or "Revised" License
20 stars 10 forks source link

Installing from GitHub with R package remotes failed #38

Closed MalteKurz closed 3 years ago

MalteKurz commented 3 years ago

Error message:


Run install.packages('remotes')
Installing package into ‘/home/runner/work/doubleml-docs/doubleml-docs/tmp_r_libs_user’
(as ‘lib’ is unspecified)
trying URL 'https://cloud.r-project.org/src/contrib/remotes_2.4.0.tar.gz'
Content type 'application/x-gzip' length 149836 bytes (146 KB)
==================================================
downloaded 146 KB

* installing *source* package ‘remotes’ ...
** package ‘remotes’ successfully unpacked and MD5 sums checked
** using staged installation
** R
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded from temporary location
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* DONE (remotes)

The downloaded source packages are in
    ‘/tmp/RtmpxK56gG/downloaded_packages’
Using bundled GitHub PAT. Please add your own PAT to the env var `GITHUB_PAT`
Error: Failed to install 'unknown package' from GitHub:
  HTTP error 401.
  Bad credentials

  Rate limit remaining: 59/60
  Rate limit reset at: 2021-08-06 13:57:47 UTC

Execution halted
Error: Process completed with exit code 1.

See https://github.com/DoubleML/doubleml-docs/runs/3262342769?check_suite_focus=true

MalteKurz commented 3 years ago

Setting the environment variable GITHUB_PAT seems to fix this issue and is also done in the https://github.com/r-lib/actions examples. Also see https://github.com/r-lib/actions/issues/208 and https://github.com/r-lib/actions/pull/209.