New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deprecate .data #295
Deprecate .data #295
Conversation
Fixes #169
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool!
expect_identical(select_loc(c(foo = "foo"), .data$foo), c(foo = 1L)) | ||
expect_identical(select_loc(c(foo = "foo"), .data[["foo"]]), c(foo = 1L)) | ||
expect_identical(select_loc(letters2, .data$a:.data$b), c(a = 1L, b = 2L)) | ||
expect_identical(select_loc(letters2, .data[["a"]]:.data[["b"]]), c(a = 1L, b = 2L)) | ||
}) | ||
|
||
test_that("use of .data is deprecated", { | ||
x <- list(a = 1, b = 2, c = 3) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should force verbosity so the test is reproducible within sessions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lifecycle always warns in tests.
For latest error snapshots
Conflicts: tests/testthat/test-eval-walk.R
Conflicts: NEWS.md
Fixes #169
This will fail until r-lib/lifecycle#129 is finished, but you should still be able to review it, and I thought it might be useful to see a concrete example.