Skip to content

Commit

Permalink
Add workaround for old R snapshot failure
Browse files Browse the repository at this point in the history
  • Loading branch information
olivroy committed Oct 23, 2024
1 parent 414ae42 commit bdd5a9f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/testthat/test-gather.R
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,10 @@ test_that("gather throws error for weird objects", {
expect_snapshot(error = TRUE, cnd_class = TRUE, {
gather(d, key, val, -x)
gather(df, key, val, -y)
})
},
# Failing for old versions of R. (<4.3)
transform = function(x) gsub(" in `gather()`", "", x)
)

e <- new.env(parent = emptyenv())
e$x <- 1
Expand Down

0 comments on commit bdd5a9f

Please sign in to comment.