Hadley Wickham
Hadley Wickham
``` r rlang:::check_bool(sum) #> Error in `call_match()`: #> ! `sum` must be `TRUE` or `FALSE`, not a primitive function. ``` Created on 2025-10-06 with [reprex v2.1.1](https://reprex.tidyverse.org) Fine to just say...
If you're capturing interrupts, I suspect it's useful to include a get-out-of-jail free card like this: ```R check_repeated_interrupt
Because that more accurately represents what it does. It's fine to have multiple weakrefs with the same key and different values, so I think the current argument is misleading.
It's sometimes useful to capture the error as it would be displayed on screen.
``` ── R CMD build ───────────────────────────────────────────────────────────────────────────────────────── ✔ checking for file ‘/private/tmp/RtmpwhojZh/build-b4f34fa342/testvignette/DESCRIPTION’ ... ─ preparing ‘testvignette’: ✔ checking DESCRIPTION meta-information ... ─ installing the package to build vignettes E creating vignettes...
This is a second reminder that `with_mock()` is going away in the next release of testthat, which I'm aiming to release October 1. The API functions that made it work...
This is a heads up to let you know that `with_mock()` is deprecated and will be made defunct soon. The API functions that made it work are being removed in...
``` r f #> Source code: #> f() #> Text output: #> Hello #> Condition: #> Error in f(): #> Error ``` Created on 2025-08-04 with [reprex v2.1.1](https://reprex.tidyverse.org)
Either by using `rlang::hash()`, or I think we can now rely on newly-exported evaluate functions.
If you use vcr for all your tests, you're vulnerable to the server API changing so that real code no longer works. It feels like the solution to this is...