I encountered the following error message from update_packages() today.
library(remotes)
update_packages()
#> Error: HTTP error 422.
#> No commit found for SHA: patch-1
#>
#> Rate limit remaining: 4992/5000
#> Rate limit reset at: 2018-10-25 17:37:08 UTC
#>
#>
I had no idea what (package) might have caused this, but subsequently narrowed it down to a package, which I installed at the time from a now deleted Github branch.
update_packages("remedy")
#> Error: HTTP error 422.
#> No commit found for SHA: patch-1
#>
#> Rate limit remaining: 4991/5000
#> Rate limit reset at: 2018-10-25 17:37:08 UTC
#>
#>
desc::desc(system.file("DESCRIPTION", package = "remedy"))
#> Package: remedy
#> Title: RStudio Addins to Simplify Markdown Writing
#> Version: 0.0.0.9000
#> Authors@R (parsed):
#> * Colin Fay <colin@thinkr.fr> [aut, cre]
#> Author: Colin Fay [aut, cre]
#> Maintainer: Colin Fay <colin@thinkr.fr>
#> Description: An RStudio addin providing shortcut for writing in Markdown.
#> License: MIT + file LICENSE
#> Imports:
#> rstudioapi,
#> stringr
#> Built: R 3.4.1; ; 2017-09-09 12:43:25 UTC; windows
#> Encoding: UTF-8
#> GithubRef: patch-1
#> GithubRepo: remedy
#> GithubSHA1: ab59c3510b64dfc6efe3293bd7d16d8cea69ae46
#> GithubUsername: dpprdan
#> LazyData: true
#> RemoteHost: https://api.github.com
#> RemoteRef: patch-1
#> RemoteRepo: remedy
#> RemoteSha: ab59c3510b64dfc6efe3293bd7d16d8cea69ae46
#> RemoteType: github
#> RemoteUsername: dpprdan
#> RoxygenNote: 6.0.1.9000
Now maybe this particular case is a very rare one but nevertheless I think it might be helpful to get more informative (error) messages if update_packages() fails (e.g. which package caused the error), so the user knows better, where to look.
Session info
devtools::session_info()
#> - Session info ----------------------------------------------------------
#> setting value
#> version R version 3.5.1 (2018-07-02)
#> os Windows 10 x64
#> system x86_64, mingw32
#> ui RTerm
#> language EN
#> collate German_Germany.1252
#> ctype German_Germany.1252
#> tz Europe/Berlin
#> date 2018-10-25
#>
#> - Packages --------------------------------------------------------------
#> package * version date lib source
#> assertthat 0.2.0 2017-04-11 [1] CRAN (R 3.5.1)
#> backports 1.1.2 2017-12-13 [1] CRAN (R 3.5.0)
#> base64enc 0.1-3 2015-07-28 [1] CRAN (R 3.5.0)
#> callr 3.0.0 2018-08-24 [1] CRAN (R 3.5.1)
#> cli 1.0.1 2018-09-25 [1] CRAN (R 3.5.1)
#> crayon 1.3.4 2017-09-16 [1] CRAN (R 3.5.1)
#> curl 3.2 2018-03-28 [1] CRAN (R 3.5.1)
#> debugme 1.1.0 2017-10-22 [1] CRAN (R 3.5.1)
#> desc 1.2.0 2018-05-01 [1] CRAN (R 3.5.1)
#> devtools 2.0.0 2018-10-19 [1] CRAN (R 3.5.1)
#> digest 0.6.18 2018-10-10 [1] CRAN (R 3.5.1)
#> evaluate 0.12 2018-10-09 [1] CRAN (R 3.5.1)
#> fs 1.2.6 2018-08-23 [1] CRAN (R 3.5.1)
#> glue 1.3.0 2018-07-17 [1] CRAN (R 3.5.1)
#> htmltools 0.3.6 2017-04-28 [1] CRAN (R 3.5.1)
#> knitr 1.20 2018-02-20 [1] CRAN (R 3.5.1)
#> magrittr 1.5 2014-11-22 [1] CRAN (R 3.5.1)
#> memoise 1.1.0 2017-04-21 [1] CRAN (R 3.5.1)
#> pkgbuild 1.0.2 2018-10-16 [1] CRAN (R 3.5.1)
#> pkgload 1.0.1 2018-10-11 [1] CRAN (R 3.5.1)
#> prettyunits 1.0.2 2015-07-13 [1] CRAN (R 3.5.1)
#> processx 3.2.0 2018-08-16 [1] CRAN (R 3.5.1)
#> ps 1.2.0 2018-10-16 [1] CRAN (R 3.5.1)
#> R6 2.3.0 2018-10-04 [1] CRAN (R 3.5.1)
#> Rcpp 0.12.19 2018-10-01 [1] CRAN (R 3.5.1)
#> remotes * 2.0.1 2018-10-19 [1] CRAN (R 3.5.1)
#> rlang 0.3.0.1 2018-10-25 [1] CRAN (R 3.5.1)
#> rmarkdown 1.10 2018-06-11 [1] CRAN (R 3.5.1)
#> rprojroot 1.3-2 2018-01-03 [1] CRAN (R 3.5.1)
#> sessioninfo 1.1.0 2018-09-25 [1] CRAN (R 3.5.1)
#> stringi 1.2.4 2018-07-20 [1] CRAN (R 3.5.1)
#> stringr 1.3.1 2018-05-10 [1] CRAN (R 3.5.1)
#> testthat 2.0.1 2018-10-13 [1] CRAN (R 3.5.1)
#> usethis 1.4.0 2018-08-14 [1] CRAN (R 3.5.1)
#> withr 2.1.2 2018-03-15 [1] CRAN (R 3.5.1)
#> yaml 2.2.0 2018-07-25 [1] CRAN (R 3.5.1)
#>
#> [1] D:/Users/Daniel/Documents/R/win-library/3.5
#> [2] C:/Program Files/R/R-3.5.1/library
I encountered the following error message from
update_packages()today.I had no idea what (package) might have caused this, but subsequently narrowed it down to a package, which I installed at the time from a now deleted Github branch.
Now maybe this particular case is a very rare one but nevertheless I think it might be helpful to get more informative (error) messages if
update_packages()fails (e.g. which package caused the error), so the user knows better, where to look.Session info