Skip to content

Commit

Permalink
Merge pull request #249 from tidymodels/snapshot-update
Browse files Browse the repository at this point in the history
  • Loading branch information
EmilHvitfeldt authored Oct 13, 2023
2 parents 2fb4dc9 + a40b14b commit a121d6f
Show file tree
Hide file tree
Showing 28 changed files with 220 additions and 214 deletions.
11 changes: 0 additions & 11 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
#
# NOTE: This workflow is overkill for most R packages and
# check-standard.yaml is likely a better choice.
# usethis::use_github_action("check-standard") will install it.
on:
push:
branches: [main, master]
Expand All @@ -23,17 +19,10 @@ jobs:
matrix:
config:
- {os: macos-latest, r: 'release'}

- {os: windows-latest, r: 'release'}
# Use 3.6 to trigger usage of RTools35
- {os: windows-latest, r: '3.6'}
# use 4.1 to check with rtools40's older compiler
- {os: windows-latest, r: '4.1'}

- {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'}
- {os: ubuntu-latest, r: 'release'}
- {os: ubuntu-latest, r: 'oldrel-1'}
- {os: ubuntu-latest, r: 'oldrel-2'}

env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
Expand Down
8 changes: 4 additions & 4 deletions tests/testthat/_snaps/clean_levels.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Code
rec
Message <cliMessage>
Message
-- Recipe ----------------------------------------------------------------------
Expand All @@ -18,7 +18,7 @@

Code
rec
Message <cliMessage>
Message
-- Recipe ----------------------------------------------------------------------
Expand All @@ -37,7 +37,7 @@

Code
print(rec)
Message <cliMessage>
Message
-- Recipe ----------------------------------------------------------------------
Expand All @@ -52,7 +52,7 @@

Code
prep(rec)
Message <cliMessage>
Message
-- Recipe ----------------------------------------------------------------------
Expand Down
8 changes: 4 additions & 4 deletions tests/testthat/_snaps/clean_names.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Code
rec
Message <cliMessage>
Message
-- Recipe ----------------------------------------------------------------------
Expand All @@ -18,7 +18,7 @@

Code
rec
Message <cliMessage>
Message
-- Recipe ----------------------------------------------------------------------
Expand All @@ -37,7 +37,7 @@

Code
print(rec)
Message <cliMessage>
Message
-- Recipe ----------------------------------------------------------------------
Expand All @@ -52,7 +52,7 @@

Code
prep(rec)
Message <cliMessage>
Message
-- Recipe ----------------------------------------------------------------------
Expand Down
13 changes: 7 additions & 6 deletions tests/testthat/_snaps/dummy_hash.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Code
prep(rec, training = dat)
Error <recipes_error_step>
Condition
Error in `step_dummy_hash()`:
Caused by error in `bake()`:
! Name collision occured. The following variable names already exists:
Expand All @@ -12,7 +12,7 @@

Code
rec
Message <cliMessage>
Message
-- Recipe ----------------------------------------------------------------------
Expand All @@ -28,7 +28,7 @@

Code
rec
Message <cliMessage>
Message
-- Recipe ----------------------------------------------------------------------
Expand All @@ -47,15 +47,16 @@

Code
rec <- prep(rec)
Warning <rlang_warning>
Condition
Warning:
'keep_original_cols' was added to `step_dummy_hash()` after this recipe was created.
Regenerate your recipe to avoid this warning.

# printing

Code
print(rec)
Message <cliMessage>
Message
-- Recipe ----------------------------------------------------------------------
Expand All @@ -70,7 +71,7 @@

Code
prep(rec)
Message <cliMessage>
Message
-- Recipe ----------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/_snaps/extension_check.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

Code
recipes::recipes_extension_check(pkg = "textrecipes")
Message <cliMessage>
Message
v All steps have all method!

13 changes: 7 additions & 6 deletions tests/testthat/_snaps/lda.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Code
prep(rec, training = dat)
Error <recipes_error_step>
Condition
Error in `step_lda()`:
Caused by error in `bake()`:
! Name collision occured. The following variable names already exists:
Expand All @@ -12,7 +12,7 @@

Code
rec
Message <cliMessage>
Message
-- Recipe ----------------------------------------------------------------------
Expand All @@ -28,7 +28,7 @@

Code
rec
Message <cliMessage>
Message
-- Recipe ----------------------------------------------------------------------
Expand All @@ -47,15 +47,16 @@

Code
rec <- prep(rec)
Warning <rlang_warning>
Condition
Warning:
'keep_original_cols' was added to `step_lda()` after this recipe was created.
Regenerate your recipe to avoid this warning.

# printing

Code
print(rec)
Message <cliMessage>
Message
-- Recipe ----------------------------------------------------------------------
Expand All @@ -71,7 +72,7 @@

Code
prep(rec)
Message <cliMessage>
Message
-- Recipe ----------------------------------------------------------------------
Expand Down
10 changes: 5 additions & 5 deletions tests/testthat/_snaps/lemma.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Code
prep(rec)
Error <recipes_error_step>
Condition
Error in `step_lemma()`:
Caused by error in `bake()`:
! `text` doesn't have a lemma attribute. Make sure the tokenization step includes lemmatization.
Expand All @@ -11,7 +11,7 @@

Code
rec
Message <cliMessage>
Message
-- Recipe ----------------------------------------------------------------------
Expand All @@ -27,7 +27,7 @@

Code
rec
Message <cliMessage>
Message
-- Recipe ----------------------------------------------------------------------
Expand All @@ -46,7 +46,7 @@

Code
print(rec)
Message <cliMessage>
Message
-- Recipe ----------------------------------------------------------------------
Expand All @@ -62,7 +62,7 @@

Code
prep(rec)
Message <cliMessage>
Message
-- Recipe ----------------------------------------------------------------------
Expand Down
18 changes: 10 additions & 8 deletions tests/testthat/_snaps/ngram.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,23 @@

Code
cpp11_ngram(test_data, n = 0L, n_min = 0L, delim = "_")
Error <simpleError>
n must be a positive integer.
Condition
Error:
! n must be a positive integer.

---

Code
cpp11_ngram(test_data, n = -1L, n_min = -1L, delim = "_")
Error <simpleError>
n must be a positive integer.
Condition
Error:
! n must be a positive integer.

# empty printing

Code
rec
Message <cliMessage>
Message
-- Recipe ----------------------------------------------------------------------
Expand All @@ -32,7 +34,7 @@

Code
rec
Message <cliMessage>
Message
-- Recipe ----------------------------------------------------------------------
Expand All @@ -51,7 +53,7 @@

Code
print(rec)
Message <cliMessage>
Message
-- Recipe ----------------------------------------------------------------------
Expand All @@ -67,7 +69,7 @@

Code
prep(rec)
Message <cliMessage>
Message
-- Recipe ----------------------------------------------------------------------
Expand Down
10 changes: 5 additions & 5 deletions tests/testthat/_snaps/pos_filter.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Code
prep(rec)
Error <recipes_error_step>
Condition
Error in `step_pos_filter()`:
Caused by error in `bake()`:
! `text` doesn't have a pos attribute. Make sure the tokenization step includes part of speech tagging.
Expand All @@ -11,7 +11,7 @@

Code
rec
Message <cliMessage>
Message
-- Recipe ----------------------------------------------------------------------
Expand All @@ -27,7 +27,7 @@

Code
rec
Message <cliMessage>
Message
-- Recipe ----------------------------------------------------------------------
Expand All @@ -46,7 +46,7 @@

Code
print(rec)
Message <cliMessage>
Message
-- Recipe ----------------------------------------------------------------------
Expand All @@ -62,7 +62,7 @@

Code
prep(rec)
Message <cliMessage>
Message
-- Recipe ----------------------------------------------------------------------
Expand Down
Loading

0 comments on commit a121d6f

Please sign in to comment.