Skip to content

Commit 5aa7dd1

Browse files
authored
GH-48283: [R][CI] Failures on R Lint on main (#48286)
### Rationale for this change lint failures ### What changes are included in this PR? Fix them by changing function used ### Are these changes tested? Yes ### Are there any user-facing changes? Nope * GitHub Issue: #48283 Authored-by: Nic Crane <[email protected]> Signed-off-by: Raúl Cumplido <[email protected]>
1 parent d16ba00 commit 5aa7dd1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

r/R/schema.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ length.Schema <- function(x) x$num_fields
366366
if (is.numeric(i)) {
367367
if (all(i < 0)) {
368368
# in R, negative i means "everything but i"
369-
i <- setdiff(seq_len(length(x)), -1 * i)
369+
i <- setdiff(seq_along(x), -1 * i)
370370
}
371371
}
372372
fields <- map(i, ~ x[[.]])

0 commit comments

Comments
 (0)