-
Notifications
You must be signed in to change notification settings - Fork 50
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
remove soft deprecated dplyr-src funs #1000
Conversation
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.
Thanks a lot! Is there a reason to prefer [[
over $
?
@@ -265,7 +265,7 @@ prepare_dm_for_flatten <- function(dm, tables, gotta_rename) { | |||
red_dm <- | |||
dm_reset_all_filters(dm) %>% | |||
dm_select_tbl(!!!tables) | |||
# Only need to compute `tbl(dm, start)`, `dm_apply_filters()` not necessary | |||
# Only need to compute `dm[[start]]`, `dm_apply_filters()` not necessary |
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.
# Only need to compute `dm[[start]]`, `dm_apply_filters()` not necessary | |
# Only need to compute `dm$start`, `dm_apply_filters()` not necessary |
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.
Thanks a lot! Is there a reason to prefer
[[
over$
?
Yes. [[
works with variables storing a string wheras $
doesn't. E.g. here.
Is start
a variable here (that stores the string) or it is a string (which then should be a "start"
)? Current code indicates that it's a variable.
If it's a variable then it needs to stay as dm[[start]]
and if it a string then it could be changed into dm$start
.
The demos are part of |
For the vignettes we'd want to look for idiomatic replacements. Happy to provide guidance as needed, pinging @TSchiefer and @moodymudskipper too. |
Nothing really strong. To me,
|
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.
Thanks! Let's get this merged so that future PRs don't require confirmation to run workflows.
Thanks! |
close #999
I have found many other calls to those functions but I decided to leave them - here goes my explanation:
dm_get_src()
R/
- only deprecated function itselfscratch
- I have left your notes untouchedtests/
- as you soft-deprecated then that means that you still expect it to work - would be good to keep that checktbl()
demo/
directory as it is as I assume it's for demoes that already happened so this code is unlikely to be executed again. If yes - should be done on the current version at that point in time.R/
- only comments and deprecated function itselftests/
- same as abovesrc_tbls()
demo/
- as abovedplyr::src_tbls
(would be good to prefix though) - please confirmcopy_to()
R/
- same as abovetests/
- same as abovevignettes/
- here I probably need your help with assessment. Should it stay or not?