Skip to content

Commit

Permalink
[create-pull-request] automated change
Browse files Browse the repository at this point in the history
  • Loading branch information
krlmlr committed Nov 8, 2023
1 parent f58df12 commit 650d063
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 18 deletions.
14 changes: 7 additions & 7 deletions tests/testthat/_snaps/subsetting.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
invisible(foo[1:5, ])
Condition
Warning:
The `i` argument of `[.tbl_df()` must lie in [0, rows] if positive, as of tibble 3.0.0.
The `i` argument of `[.tbl_df` must lie in [0, rows] if positive, as of tibble 3.0.0.
i Use `NA_integer_` as row index to obtain a row full of `NA` values.
Code
foo[-1:1, ]
Expand All @@ -137,7 +137,7 @@
invisible(foo[-4, ])
Condition
Warning:
The `i` argument of `[.tbl_df()` must lie in [-rows, 0] if negative, as of tibble 3.0.0.
The `i` argument of `[.tbl_df` must lie in [-rows, 0] if negative, as of tibble 3.0.0.
i Use `NA_integer_` as row index to obtain a row full of `NA` values.
Code
foo[array(1, dim = c(1, 1, 1)), ]
Expand Down Expand Up @@ -288,19 +288,19 @@
invisible(foo[3:5, ])
Condition
Warning:
The `i` argument of `[.tbl_df()` must lie in [0, rows] if positive, as of tibble 3.0.0.
The `i` argument of `[.tbl_df` must lie in [0, rows] if positive, as of tibble 3.0.0.
i Use `NA_integer_` as row index to obtain a row full of `NA` values.
Code
invisible(foo[-(3:5), ])
Condition
Warning:
The `i` argument of `[.tbl_df()` must lie in [-rows, 0] if negative, as of tibble 3.0.0.
The `i` argument of `[.tbl_df` must lie in [-rows, 0] if negative, as of tibble 3.0.0.
i Use `NA_integer_` as row index to obtain a row full of `NA` values.
Code
invisible(foo["x", ])
Condition
Warning:
The `i` argument of `[.tbl_df()` must use valid row names as of tibble 3.0.0.
The `i` argument of `[.tbl_df` must use valid row names as of tibble 3.0.0.
i Use `NA_integer_` as row index to obtain a row full of `NA` values.
Code
# # [.tbl_df and logical recycling
Expand Down Expand Up @@ -438,13 +438,13 @@
invisible(foo[matrix(1:2, ncol = 1), ])
Condition
Warning:
The `i` argument of `[()` can't be a matrix as of tibble 3.0.0.
The `i` argument of `[` can't be a matrix as of tibble 3.0.0.
i Convert to a vector.
Code
invisible(foo[matrix(rep(TRUE, 10), ncol = 1), ])
Condition
Warning:
The `i` argument of `[()` can't be a matrix as of tibble 3.0.0.
The `i` argument of `[` can't be a matrix as of tibble 3.0.0.
i Convert to a vector.
Code
# # [<-.tbl_df rejects unknown row indexes
Expand Down
10 changes: 5 additions & 5 deletions tests/testthat/_snaps/tbl_df.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@
names(df) <- NULL
Condition
Warning:
The `value` argument of `names<-()` can't be NULL as of tibble 3.0.0.
The `value` argument of `names<-` can't be NULL as of tibble 3.0.0.
Warning:
The `value` argument of `names<-()` must have the same length as `x` as of tibble 3.0.0.
The `value` argument of `names<-` must have the same length as `x` as of tibble 3.0.0.
Warning:
The `value` argument of `names<-()` can't be empty as of tibble 3.0.0.
The `value` argument of `names<-` can't be empty as of tibble 3.0.0.
Code
names(df) <- "c"
Condition
Warning:
The `value` argument of `names<-()` must have the same length as `x` as of tibble 3.0.0.
The `value` argument of `names<-` must have the same length as `x` as of tibble 3.0.0.
Warning:
The `value` argument of `names<-()` can't be empty as of tibble 3.0.0.
The `value` argument of `names<-` can't be empty as of tibble 3.0.0.
Code
names(df) <- c("..1", "..2")

12 changes: 6 additions & 6 deletions tests/testthat/_snaps/vignette-invariants/invariants.md
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ df[[1:2]]
```r
tbl[[1:2]]
#> Error:
#> ! The `j` argument of `[[.tbl_df()` can't be a vector of length 2 as of tibble 3.0.0.
#> ! The `j` argument of `[[.tbl_df` can't be a vector of length 2 as of tibble 3.0.0.
#> i Recursive subsetting is deprecated for tibbles.
```

Expand Down Expand Up @@ -1043,7 +1043,7 @@ df[10, ]

```r
tbl[10, ]
#> Warning: The `i` argument of `[.tbl_df()` must lie in [0, rows] if positive, as of tibble 3.0.0.
#> Warning: The `i` argument of `[.tbl_df` must lie in [0, rows] if positive, as of tibble 3.0.0.
#> i Use `NA_integer_` as row index to obtain a row full of `NA` values.
#> Call `lifecycle::last_lifecycle_warnings()` to see where this warning was generated.
#> # A tibble: 1 x 3
Expand All @@ -1064,7 +1064,7 @@ df["x", ]

```r
tbl["x", ]
#> Warning: The `i` argument of `[.tbl_df()` must use valid row names as of tibble 3.0.0.
#> Warning: The `i` argument of `[.tbl_df` must use valid row names as of tibble 3.0.0.
#> i Use `NA_integer_` as row index to obtain a row full of `NA` values.
#> Call `lifecycle::last_lifecycle_warnings()` to see where this warning was generated.
#> # A tibble: 1 x 3
Expand Down Expand Up @@ -3628,7 +3628,7 @@ with_df(df[as.character(-(1:3)), ] <- df[1, ])

```r
with_tbl(tbl[as.character(-(1:3)), ] <- tbl[1, ])
#> Warning: The `i` argument of `[.tbl_df()` must use valid row names as of tibble 3.0.0.
#> Warning: The `i` argument of `[.tbl_df` must use valid row names as of tibble 3.0.0.
#> i Use `NA_integer_` as row index to obtain a row full of `NA` values.
#> Call `lifecycle::last_lifecycle_warnings()` to see where this warning was generated.
#> Error in `[<-`:
Expand All @@ -3651,7 +3651,7 @@ with_df(df[as.character(3:5), ] <- df[1, ])

```r
with_tbl(tbl[as.character(3:5), ] <- tbl[1, ])
#> Warning: The `i` argument of `[.tbl_df()` must use valid row names as of tibble 3.0.0.
#> Warning: The `i` argument of `[.tbl_df` must use valid row names as of tibble 3.0.0.
#> i Use `NA_integer_` as row index to obtain a row full of `NA` values.
#> Call `lifecycle::last_lifecycle_warnings()` to see where this warning was generated.
#> Error in `[<-`:
Expand All @@ -3676,7 +3676,7 @@ with_df(df[as.character(-(3:5)), ] <- df[1, ])

```r
with_tbl(tbl[as.character(-(3:5)), ] <- tbl[1, ])
#> Warning: The `i` argument of `[.tbl_df()` must use valid row names as of tibble 3.0.0.
#> Warning: The `i` argument of `[.tbl_df` must use valid row names as of tibble 3.0.0.
#> i Use `NA_integer_` as row index to obtain a row full of `NA` values.
#> Call `lifecycle::last_lifecycle_warnings()` to see where this warning was generated.
#> Error in `[<-`:
Expand Down

0 comments on commit 650d063

Please sign in to comment.