-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gitcreds::gitcreds_set produces error #63
Comments
What's your git version? |
Also, since this is Linux, there is probably no good credential helper available, so I suggest you set |
git --version |
I have tried this but it doesn't work. |
This means that it does work, but your PAT is invalid or expired. Try calling
to see your rate limits. |
When I try to use
gitcreds::gitcreds_set()
, I get this error message:Using github PAT from envvar GITHUB_PAT. Use
gitcreds::gitcreds_set()
and unset GITHUB_PAT in .Renviron (or elsewhere) if you want to use the more secure git credential store instead.Error: Failed to install 'unknown package' from GitHub:
HTTP error 401.
Bad credentials
Rate limit remaining: 0/60
Rate limit reset at: 2024-09-26 12:10:07 UTC
To increase your GitHub API rate limit
usethis::create_github_token()
to create a Personal Access Token.gitcreds::gitcreds_set()
to add the token.gitcreds::gitcreds_set()
? Enter password or token: xxxxxxx
Config file location
--global use global config file
--system use system config file
--local use repository config file
-f, --file use given config file
--blob read config from given blob object
Action
--get get value: name [value-regex]
--get-all get all values: key [value-regex]
--get-regexp get values for regexp: name-regex [value-regex]
--replace-all replace all matching variables: name value [value_regex]
--add add a new variable: name value
--unset remove a variable: name [value-regex]
--unset-all remove all matches: name [value-regex]
--rename-section rename section: old-name new-name
--remove-section remove a section: name
-l, --list list all
-e, --edit
sessionInfo()
R version 4.1.3 (2022-03-10)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Red Hat Enterprise Linux Server 7.9 (Maipo)
Matrix products: default
BLAS/LAPACK: /cm/easybuild/software/OpenBLAS/0.3.12-GCC-10.2.0/lib/libopenblas_skylakexp-r0.3.12.so
locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8 LC_MONETARY=en_US.UTF-8
[6] LC_MESSAGES=en_US.UTF-8 LC_PAPER=en_US.UTF-8 LC_NAME=C LC_ADDRESS=C LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] gitcreds_0.1.1 plotly_4.10.4 ggplot2_3.5.0 dplyr_1.1.4
[6] magrittr_2.0.3 rlang_1.1.3 forcats_1.0.0 readr_2.1.5 purrr_1.0.2
[11] stringr_1.5.1 tibble_3.2.1 tidyselect_1.2.1 openxlsx_4.2.5.2 tidyr_1.3.1
[16] DT_0.32 fs_1.6.4 shinyBS_0.61.1 shinycssloaders_1.0.0 bslib_0.6.1
[21] shiny_1.7.1 testthat_3.2.1
loaded via a namespace (and not attached):
[1] xopen_1.0.0 usethis_2.1.3 lubridate_1.9.2 fontawesome_0.5.2 devtools_2.4.2 httr_1.4.7
[7] rprojroot_2.0.2 tools_4.1.3 backports_1.4.1 utf8_1.2.3 R6_2.5.1 lazyeval_0.2.2
[13] colorspace_2.0-2 withr_3.0.0 prettyunits_1.1.1 processx_3.8.2 curl_5.2.1 compiler_4.1.3
[19] httr2_1.0.0 cli_3.6.2 desc_1.4.3 labeling_0.4.2 sass_0.4.9 scales_1.3.0
[25] checkmate_2.3.1 callr_3.7.5 rappdirs_0.3.3 digest_0.6.35 pkgconfig_2.0.3 htmltools_0.5.8.1
[31] sessioninfo_1.2.0 fastmap_1.2.0 htmlwidgets_1.6.4 rstudioapi_0.16.0 jquerylib_0.1.4 generics_0.1.3
[37] jsonlite_1.8.8 crosstalk_1.1.1 zip_2.3.0 Rcpp_1.0.11 munsell_0.5.0 fansi_1.0.6
[43] lifecycle_1.0.3 stringi_1.8.1 yaml_2.3.8 brio_1.1.5 pkgbuild_1.2.0 grid_4.1.3
[49] promises_1.2.0.1 crayon_1.4.2 hms_1.1.1 test.package.0001_0.1.0 ps_1.7.5 pillar_1.9.0
[55] pkgload_1.3.2.1 glue_1.7.0 data.table_1.14.2 remotes_2.4.1 vctrs_0.6.5 tzdb_0.4.0
[61] httpuv_1.6.3 gtable_0.3.4 rcmdcheck_1.4.0 cachem_1.1.0 mime_0.12 xtable_1.8-4
[67] later_1.3.0 rsconnect_1.2.1 viridisLite_0.4.2 memoise_2.0.1 timechange_0.2.0 ellipsis_0.3.2
The text was updated successfully, but these errors were encountered: