diff --git a/DESCRIPTION b/DESCRIPTION index efaa3a86..acfcb3ae 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,9 +1,9 @@ Package: httr2 Title: Perform HTTP Requests and Process the Responses -Version: 1.0.1.9000 +Version: 1.0.2.9000 Authors@R: c( - person("Hadley", "Wickham", , "hadley@rstudio.com", role = c("aut", "cre")), - person("RStudio", role = c("cph", "fnd")), + person("Hadley", "Wickham", , "hadley@posit.co", role = c("aut", "cre")), + person("Posit Software, PBC", role = c("cph", "fnd")), person("Maximilian", "Girlich", role = "ctb") ) Description: Tools for creating and modifying HTTP requests, then diff --git a/NEWS.md b/NEWS.md index 7de0c793..be058d63 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,15 +1,16 @@ # httr2 (development version) * `req_perform_parallel()` now respects error handling in `req_error()` + +# httr2 1.0.2 + +* `req_body_file()` now only opens a connection when the request actually needs data. In particular, this makes it work better with `req_perform_parallel()` (#487). +* `req_cache()` no longer fails if the `rds` files are somehow corrupted and now defaults the `debug` argument to the `httr2_cache_debug` option to make it easier to debug caching buried in other people's code (#486). +* `req_oauth_password()` now only asks for your password once (#498). +* `req_perform_parallel()` now works correctly with `req_cache()` (#447) and now works when downloading 0 byte files (#478) * `req_perform_stream()` no longer applies the `callback` to unsuccessful responses, instead creating a regular response. It also now sets `last_request()` and `last_response()` (#479). -* `req_cache()` now defaults the `debug` argument to the `httr2_cache_debug` option to make it easier to debug caching buried in other people's code (#486). -* `req_oauth_password()` now only asks for your password once (#498). * `req_url_query()` now allows you to opt out of escaping for multi-value parameters (#404). -* `req_perform_parallel()` now works correctly with `req_cache()` (#447). -* `req_body_file()` now only opens a connection when the request actually needs data. In particular, this makes it work better with `req_perform_parallel()` (#487). -* `req_perform_parallel()` now works when downloading 0 byte files (#478) -* `req_cache()` no longer fails if the `rds` files are somehow corrupted # httr2 1.0.1 diff --git a/R/progress-bars.R b/R/progress-bars.R index 71b36d8f..31c2a739 100644 --- a/R/progress-bars.R +++ b/R/progress-bars.R @@ -22,7 +22,7 @@ #' the progress bar type. It must be given for the `custom` type. #' Format strings may contain R expressions to evaluate in braces. #' They support cli [pluralization][cli::pluralization], and -#' [styling][inline-markup] and they can contain special +#' [styling][cli::inline-markup] and they can contain special #' [progress variables][cli::progress-variables]. #' * `format_done`: format string for successful termination. By default #' the same as `format`. diff --git a/README.md b/README.md index 8b8c8e86..4af51d07 100644 --- a/README.md +++ b/README.md @@ -76,7 +76,7 @@ And see exactly what httr2 will send to the server with `req_dry_run()`: req |> req_dry_run() #> GET / HTTP/1.1 #> Host: r-project.org -#> User-Agent: httr2/1.0.1.9000 r-curl/5.2.1 libcurl/8.4.0 +#> User-Agent: httr2/1.0.1.9000 r-curl/5.2.1 libcurl/8.6.0 #> Accept: */* #> Accept-Encoding: deflate, gzip ``` @@ -90,7 +90,7 @@ resp #> GET https://www.r-project.org/ #> Status: 200 OK #> Content-Type: text/html -#> Body: In memory (7040 bytes) +#> Body: In memory (6951 bytes) ``` The `resp_` functions help you extract various useful components of the diff --git a/cran-comments.md b/cran-comments.md index 4ca1d605..e36b3476 100644 --- a/cran-comments.md +++ b/cran-comments.md @@ -4,8 +4,7 @@ ## revdepcheck results -We checked 57 reverse dependencies, comparing R CMD check results across CRAN and dev versions of this package. +We checked 110 reverse dependencies, comparing R CMD check results across CRAN and dev versions of this package. - * We saw 1 new problems with happign: this looks like user error, - but I've supplied a patch at https://github.com/paul-carteron/happign/pull/22. + * We saw 0 new problems * We failed to check 0 packages diff --git a/man/httr2-package.Rd b/man/httr2-package.Rd index ebc41823..19445e29 100644 --- a/man/httr2-package.Rd +++ b/man/httr2-package.Rd @@ -20,11 +20,11 @@ Useful links: } \author{ -\strong{Maintainer}: Hadley Wickham \email{hadley@rstudio.com} +\strong{Maintainer}: Hadley Wickham \email{hadley@posit.co} Other contributors: \itemize{ - \item RStudio [copyright holder, funder] + \item Posit Software, PBC [copyright holder, funder] \item Maximilian Girlich [contributor] } diff --git a/man/progress_bars.Rd b/man/progress_bars.Rd index 6c6f3399..3acb1d16 100644 --- a/man/progress_bars.Rd +++ b/man/progress_bars.Rd @@ -25,7 +25,7 @@ termination. Defaults to \code{TRUE}. the progress bar type. It must be given for the \code{custom} type. Format strings may contain R expressions to evaluate in braces. They support cli \link[cli:pluralization]{pluralization}, and -\link[=inline-markup]{styling} and they can contain special +\link[cli:inline-markup]{styling} and they can contain special \link[cli:progress-variables]{progress variables}. \item \code{format_done}: format string for successful termination. By default the same as \code{format}. diff --git a/revdep/README.md b/revdep/README.md index 472c07c5..52e12c71 100644 --- a/revdep/README.md +++ b/revdep/README.md @@ -1,8 +1,2 @@ # Revdeps -## New problems (1) - -|package |version |error |warning |note | -|:-------|:-------|:------|:-------|:----| -|[happign](problems.md#happign)|0.2.0 |__+1__ | |1 | - diff --git a/revdep/cran.md b/revdep/cran.md index 762ce4da..94936f46 100644 --- a/revdep/cran.md +++ b/revdep/cran.md @@ -1,15 +1,7 @@ ## revdepcheck results -We checked 57 reverse dependencies, comparing R CMD check results across CRAN and dev versions of this package. +We checked 110 reverse dependencies, comparing R CMD check results across CRAN and dev versions of this package. - * We saw 1 new problems + * We saw 0 new problems * We failed to check 0 packages -Issues with CRAN packages are summarised below. - -### New problems -(This reports the first line of each new failure) - -* happign - checking tests ... ERROR - diff --git a/revdep/problems.md b/revdep/problems.md index 534ca890..9a207363 100644 --- a/revdep/problems.md +++ b/revdep/problems.md @@ -1,48 +1 @@ -# happign - -
- -* Version: 0.2.0 -* GitHub: https://github.com/paul-carteron/happign -* Source code: https://github.com/cran/happign -* Date/Publication: 2023-08-07 19:10:02 UTC -* Number of recursive dependencies: 120 - -Run `revdepcheck::cloud_details(, "happign")` for more info - -
- -## Newly broken - -* checking tests ... ERROR - ``` - Running ‘testthat.R’ - Running the tests in ‘tests/testthat.R’ failed. - Complete output: - > library(testthat) - > library(happign) - Please make sure you have an internet connection. - Use happign::get_last_news() to display latest geoservice news. - > - > test_check("happign") - Linking to GEOS 3.8.0, GDAL 3.0.4, PROJ 6.3.1; sf_use_s2() is TRUE - ... - 6. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) - 7. └─happign:::build_req(path, "test") - 8. └─httr2::req_url_query(...) - 9. └─httr2:::query_build(dots) - 10. └─cli::cli_abort("Query must be a named list.", call = error_call) - 11. └─rlang::abort(...) - - [ FAIL 1 | WARN 21 | SKIP 24 | PASS 64 ] - Error: Test failures - Execution halted - ``` - -## In both - -* checking data for non-ASCII characters ... NOTE - ``` - Note: found 7592 marked UTF-8 strings - ``` - +*Wow, no problems at all. :)* \ No newline at end of file