Skip to content

Commit

Permalink
fix typos in check_name()
Browse files Browse the repository at this point in the history
  • Loading branch information
EmilHvitfeldt committed Oct 11, 2023
1 parent 5605ebe commit 4c3b401
Show file tree
Hide file tree
Showing 34 changed files with 68 additions and 68 deletions.
4 changes: 2 additions & 2 deletions R/misc.R
Original file line number Diff line number Diff line change
Expand Up @@ -530,8 +530,8 @@ check_name <- function(res, new_data, object, newname = NULL, names = FALSE,
if (any(intersection)) {
nms <- new_data_names[intersection]
cli::cli_abort(
c("Name collision occured. The following variable names already exists:",
i = " {nms}"),
c("Name collision occurred. The following variable names already exist:",
"*" = "{.var {nms}}"),
call = call
)

Expand Down
4 changes: 2 additions & 2 deletions tests/testthat/_snaps/bs.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
Condition
Error in `step_bs()`:
Caused by error in `bake()`:
! Name collision occured. The following variable names already exists:
i mpg_bs_1
! Name collision occurred. The following variable names already exist:
* `mpg_bs_1`

# empty printing

Expand Down
4 changes: 2 additions & 2 deletions tests/testthat/_snaps/classdist.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
Condition
Error in `step_classdist()`:
Caused by error in `bake()`:
! Name collision occured. The following variable names already exists:
i classdist_setosa
! Name collision occurred. The following variable names already exist:
* `classdist_setosa`

# case weights

Expand Down
4 changes: 2 additions & 2 deletions tests/testthat/_snaps/count.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
Condition
Error in `step_count()`:
Caused by error in `bake()`:
! Name collision occured. The following variable names already exists:
i Sepal.Width
! Name collision occurred. The following variable names already exist:
* `Sepal.Width`

# empty printing

Expand Down
4 changes: 2 additions & 2 deletions tests/testthat/_snaps/date.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
Condition
Error in `step_date()`:
Caused by error in `bake()`:
! Name collision occured. The following variable names already exists:
i Dan_year
! Name collision occurred. The following variable names already exist:
* `Dan_year`

# empty printing

Expand Down
4 changes: 2 additions & 2 deletions tests/testthat/_snaps/dummy.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@
Condition
Error in `step_dummy()`:
Caused by error in `bake()`:
! Name collision occured. The following variable names already exists:
i Species_versicolor
! Name collision occurred. The following variable names already exist:
* `Species_versicolor`

# empty printing

Expand Down
4 changes: 2 additions & 2 deletions tests/testthat/_snaps/dummy_extract.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
Condition
Error in `step_dummy_extract()`:
Caused by error in `bake()`:
! Name collision occured. The following variable names already exists:
i Species_setosa
! Name collision occurred. The following variable names already exist:
* `Species_setosa`

# case weights

Expand Down
4 changes: 2 additions & 2 deletions tests/testthat/_snaps/dummy_multi_choice.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
Condition
Error in `step_dummy_multi_choice()`:
Caused by error in `bake()`:
! Name collision occured. The following variable names already exists:
i Species_setosa
! Name collision occurred. The following variable names already exist:
* `Species_setosa`

# empty printing

Expand Down
4 changes: 2 additions & 2 deletions tests/testthat/_snaps/geodist.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@
Condition
Error in `step_geodist()`:
Caused by error in `bake()`:
! Name collision occured. The following variable names already exists:
i geo_dist
! Name collision occurred. The following variable names already exist:
* `geo_dist`

# bad args

Expand Down
4 changes: 2 additions & 2 deletions tests/testthat/_snaps/harmonic.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@
Condition
Error in `step_harmonic()`:
Caused by error in `bake()`:
! Name collision occured. The following variable names already exists:
i mpg_sin_1
! Name collision occurred. The following variable names already exist:
* `mpg_sin_1`

# empty printing

Expand Down
4 changes: 2 additions & 2 deletions tests/testthat/_snaps/holiday.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
Condition
Error in `step_holiday()`:
Caused by error in `bake()`:
! Name collision occured. The following variable names already exists:
i day_Easter
! Name collision occurred. The following variable names already exist:
* `day_Easter`

# empty printing

Expand Down
4 changes: 2 additions & 2 deletions tests/testthat/_snaps/ica.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
Condition
Error in `step_ica()`:
Caused by error in `bake()`:
! Name collision occured. The following variable names already exists:
i IC1
! Name collision occurred. The following variable names already exist:
* `IC1`

# empty printing

Expand Down
4 changes: 2 additions & 2 deletions tests/testthat/_snaps/indicate_na.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
Condition
Error in `step_indicate_na()`:
Caused by error in `bake()`:
! Name collision occured. The following variable names already exists:
i na_ind_mpg
! Name collision occurred. The following variable names already exist:
* `na_ind_mpg`

# empty printing

Expand Down
4 changes: 2 additions & 2 deletions tests/testthat/_snaps/interact.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
Condition
Error in `step_interact()`:
Caused by error in `bake()`:
! Name collision occured. The following variable names already exists:
i x1ax2
! Name collision occurred. The following variable names already exist:
* `x1ax2`

# bake method errors when needed non-standard role columns are missing

Expand Down
4 changes: 2 additions & 2 deletions tests/testthat/_snaps/intercept.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@
Condition
Error in `step_intercept()`:
Caused by error in `bake()`:
! Name collision occured. The following variable names already exists:
i intercept
! Name collision occurred. The following variable names already exist:
* `intercept`

# printing

Expand Down
4 changes: 2 additions & 2 deletions tests/testthat/_snaps/isomap.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@
Condition
Error in `step_isomap()`:
Caused by error in `bake()`:
! Name collision occured. The following variable names already exists:
i Isomap1
! Name collision occurred. The following variable names already exist:
* `Isomap1`

# empty printing

Expand Down
4 changes: 2 additions & 2 deletions tests/testthat/_snaps/kpca.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
Condition
Error in `step_kpca()`:
Caused by error in `bake()`:
! Name collision occured. The following variable names already exists:
i kPC1
! Name collision occurred. The following variable names already exist:
* `kPC1`

# No kPCA comps

Expand Down
4 changes: 2 additions & 2 deletions tests/testthat/_snaps/kpca_poly.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
Condition
Error in `step_kpca_poly()`:
Caused by error in `bake()`:
! Name collision occured. The following variable names already exists:
i kPC1
! Name collision occurred. The following variable names already exist:
* `kPC1`

# empty printing

Expand Down
4 changes: 2 additions & 2 deletions tests/testthat/_snaps/kpca_rbf.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
Condition
Error in `step_kpca_rbf()`:
Caused by error in `bake()`:
! Name collision occured. The following variable names already exists:
i kPC1
! Name collision occurred. The following variable names already exist:
* `kPC1`

# empty printing

Expand Down
4 changes: 2 additions & 2 deletions tests/testthat/_snaps/nnmf_sparse.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
Condition
Error in `step_nnmf_sparse()`:
Caused by error in `bake()`:
! Name collision occured. The following variable names already exists:
i NNMF1
! Name collision occurred. The following variable names already exist:
* `NNMF1`

# empty printing

Expand Down
4 changes: 2 additions & 2 deletions tests/testthat/_snaps/ns.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
Condition
Error in `step_ns()`:
Caused by error in `bake()`:
! Name collision occured. The following variable names already exists:
i mpg_ns_1
! Name collision occurred. The following variable names already exist:
* `mpg_ns_1`

# empty printing

Expand Down
4 changes: 2 additions & 2 deletions tests/testthat/_snaps/pca.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@
Condition
Error in `step_pca()`:
Caused by error in `bake()`:
! Name collision occured. The following variable names already exists:
i PC1
! Name collision occurred. The following variable names already exist:
* `PC1`

# case weights

Expand Down
4 changes: 2 additions & 2 deletions tests/testthat/_snaps/pls.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
Condition
Error in `step_pls()`:
Caused by error in `bake()`:
! Name collision occured. The following variable names already exists:
i PLS1
! Name collision occurred. The following variable names already exist:
* `PLS1`

# Deprecation warning

Expand Down
4 changes: 2 additions & 2 deletions tests/testthat/_snaps/poly.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
Condition
Error in `step_poly()`:
Caused by error in `bake()`:
! Name collision occured. The following variable names already exists:
i mpg_poly_1
! Name collision occurred. The following variable names already exist:
* `mpg_poly_1`

# empty printing

Expand Down
4 changes: 2 additions & 2 deletions tests/testthat/_snaps/poly_bernstein.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
Condition
Error in `step_poly_bernstein()`:
Caused by error in `bake()`:
! Name collision occured. The following variable names already exists:
i mpg_01
! Name collision occurred. The following variable names already exist:
* `mpg_01`

# empty printing

Expand Down
4 changes: 2 additions & 2 deletions tests/testthat/_snaps/ratio.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
Condition
Error in `step_ratio()`:
Caused by error in `bake()`:
! Name collision occured. The following variable names already exists:
i mpg_o_disp
! Name collision occurred. The following variable names already exist:
* `mpg_o_disp`

# empty printing

Expand Down
4 changes: 2 additions & 2 deletions tests/testthat/_snaps/regex.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
Condition
Error in `step_regex()`:
Caused by error in `bake()`:
! Name collision occured. The following variable names already exists:
i Sepal.Width
! Name collision occurred. The following variable names already exist:
* `Sepal.Width`

# empty printing

Expand Down
4 changes: 2 additions & 2 deletions tests/testthat/_snaps/spline_b.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
Condition
Error in `step_spline_b()`:
Caused by error in `bake()`:
! Name collision occured. The following variable names already exists:
i mpg_01
! Name collision occurred. The following variable names already exist:
* `mpg_01`

# empty printing

Expand Down
4 changes: 2 additions & 2 deletions tests/testthat/_snaps/spline_convex.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
Condition
Error in `step_spline_convex()`:
Caused by error in `bake()`:
! Name collision occured. The following variable names already exists:
i mpg_01
! Name collision occurred. The following variable names already exist:
* `mpg_01`

# empty printing

Expand Down
4 changes: 2 additions & 2 deletions tests/testthat/_snaps/spline_monotone.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
Condition
Error in `step_spline_monotone()`:
Caused by error in `bake()`:
! Name collision occured. The following variable names already exists:
i mpg_01
! Name collision occurred. The following variable names already exist:
* `mpg_01`

# empty printing

Expand Down
4 changes: 2 additions & 2 deletions tests/testthat/_snaps/spline_natural.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
Condition
Error in `step_spline_natural()`:
Caused by error in `bake()`:
! Name collision occured. The following variable names already exists:
i mpg_01
! Name collision occurred. The following variable names already exist:
* `mpg_01`

# empty printing

Expand Down
4 changes: 2 additions & 2 deletions tests/testthat/_snaps/spline_nonnegative.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
Condition
Error in `step_spline_nonnegative()`:
Caused by error in `bake()`:
! Name collision occured. The following variable names already exists:
i mpg_01
! Name collision occurred. The following variable names already exist:
* `mpg_01`

# empty printing

Expand Down
4 changes: 2 additions & 2 deletions tests/testthat/_snaps/time.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
Condition
Error in `step_time()`:
Caused by error in `bake()`:
! Name collision occured. The following variable names already exists:
i time_hour
! Name collision occurred. The following variable names already exist:
* `time_hour`

# empty printing

Expand Down
4 changes: 2 additions & 2 deletions tests/testthat/_snaps/window.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@
Condition
Error in `step_window()`:
Caused by error in `bake()`:
! Name collision occured. The following variable names already exists:
i new_value
! Name collision occurred. The following variable names already exist:
* `new_value`

# empty printing

Expand Down

0 comments on commit 4c3b401

Please sign in to comment.