From 4f8788c1542fdda8e321f143c14da62da5cd0008 Mon Sep 17 00:00:00 2001 From: Jenny Bryan Date: Mon, 31 Jul 2023 17:10:43 -0700 Subject: [PATCH] Try the dev version of pkgsearch MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Relates to https://github.com/r-hub/pkgsearch/issues/117 and intermittent "build and deploy" failures we're seeing due to an attempt to get a package's CRAN history. Example log: https://github.com/hadley/r-pkgs/actions/runs/5711724736/job/15473842892 The failure I'm talking about: ``` Quitting from lines 59-67 [tbl-usethis-versions] (lifecycle.Rmd) Error: ! parse error: premature EOF (right here) ------^ Backtrace: ▆ 1. ├─knitr::kable(...) 2. ├─dplyr::select(cran_package_history("usethis"), Version, Date = `Date/Publication`) 3. └─pkgsearch::cran_package_history("usethis") 4. └─pkgsearch:::do_crandb_query(...) 5. └─pkgsearch:::crandb_query(ept) 6. └─jsonlite::fromJSON(cnt, ...) 7. └─jsonlite:::parse_and_simplify(...) 8. └─jsonlite:::parseJSON(txt, bigint_as_char) 9. └─jsonlite:::parse_string(txt, bigint_as_char) ``` --- DESCRIPTION | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/DESCRIPTION b/DESCRIPTION index 92cdbc886..5b6c13c6f 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -14,7 +14,7 @@ Imports: lubridate, nycflights13, pak, - pkgsearch, + pkgsearch (>= 3.1.2.9000), rlang, roxygen2, stringi, @@ -33,3 +33,5 @@ Suggests: pkgload, xml2 Encoding: UTF-8 +Remotes: + r-hub/pkgsearch