Open jennybc opened 4 months ago
I can't reproduce this, the test passes in the build pane, and also in an RStudio terminal. :(
Can you check your config for potentially related env vars and options?
I've removed .Renviron
and .Rprofile
and see the same result as before (failure in the RStudio build pane). FWIW this is with RStudio Version 2023.12.1+402 (2023.12.1+402).
Yeah, same here. Same RStudio, R 4.3.2, no profile, no env vars, no test failure.
The stack trace, otoh, looks pretty good, I might be able to work something out there.
What's your theme?
> rstudioapi::getThemeInfo()
$editor
[1] "Chrome"
$global
[1] "Modern"
$dark
[1] FALSE
$foreground
[1] "rgb(0, 0, 0)"
$background
[1] "rgb(255, 255, 255)"
Looks same as you:
rstudioapi::getThemeInfo()
#> $editor
#> [1] "Chrome"
#>
#> $global
#> [1] "Modern"
#>
#> $dark
#> [1] FALSE
#>
#> $foreground
#> [1] "rgb(0, 0, 0)"
#>
#> $background
#> [1] "rgb(255, 255, 255)"
What's your testthat version?
testthat 3.2.1
Freshly re-installed and re-checked, for good measure. Still seeing my same result.
As per slack discussion
This test passes when executed via
test_active_file()
ortest()
in the RStudio console, but fails in the RStudio build pane or in a terminal inside RStudio. It passes via any method when run via R in a (non-RStudio) terminal.Update: the CI test failures seem to just be snapshot related and are not what I'm seeing, which I'll copy/paste below.