Skip to content

Commit 9c97dc7

Browse files
committed
Remove trace$calls %||% trace$call once rlang > 0.4.11 is released
1 parent 744f0ec commit 9c97dc7

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

r/R/metadata.R

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,7 @@ apply_arrow_r_metadata <- function(x, r_metadata) {
188188
# we cannot apply this row-level metadata, since the order of the rows is
189189
# not guaranteed to be the same, so don't even try, but warn what's going on
190190
trace <- trace_back()
191-
# TODO: remove `trace$calls %||% trace$call` once rlang > 0.4.11 is released
192-
in_dplyr_collect <- any(map_lgl(trace$calls %||% trace$call, function(x) {
191+
in_dplyr_collect <- any(map_lgl(trace$call, function(x) {
193192
grepl("collect\\.([aA]rrow|Dataset)", x)[[1]]
194193
}))
195194
if (in_dplyr_collect) {
@@ -296,8 +295,7 @@ arrow_attributes <- function(x, only_top_level = FALSE) {
296295
# we cannot apply this row-level metadata, since the order of the rows is
297296
# not guaranteed to be the same, so don't even try, but warn what's going on
298297
trace <- trace_back()
299-
# TODO: remove `trace$calls %||% trace$call` once rlang > 0.4.11 is released
300-
in_dataset_write <- any(map_lgl(trace$calls %||% trace$call, function(x) {
298+
in_dataset_write <- any(map_lgl(trace$call, function(x) {
301299
grepl("write_dataset", x, fixed = TRUE)[[1]]
302300
}))
303301
if (in_dataset_write) {

0 commit comments

Comments
 (0)