From 67daabad9e7c5e914d0b70967474ee990aedf225 Mon Sep 17 00:00:00 2001 From: Julia Silge Date: Tue, 2 Aug 2022 16:51:27 -0600 Subject: [PATCH] Update snaps for new tibble --- tests/testthat/_snaps/boot.md | 1 + tests/testthat/_snaps/make_groups.md | 120 ++++++++++++++------------ tests/testthat/_snaps/mc.md | 3 + tests/testthat/_snaps/misc.md | 27 +----- tests/testthat/_snaps/permutations.md | 1 + tests/testthat/_snaps/vfold.md | 1 + 6 files changed, 73 insertions(+), 80 deletions(-) diff --git a/tests/testthat/_snaps/boot.md b/tests/testthat/_snaps/boot.md index a73a6d74..3583876f 100644 --- a/tests/testthat/_snaps/boot.md +++ b/tests/testthat/_snaps/boot.md @@ -28,4 +28,5 @@ 9 Bootstrap09 10 Bootstrap10 # ... with 15 more rows + # i Use `print(n = ...)` to see more rows diff --git a/tests/testthat/_snaps/make_groups.md b/tests/testthat/_snaps/make_groups.md index e2c71fb6..f71311b0 100644 --- a/tests/testthat/_snaps/make_groups.md +++ b/tests/testthat/_snaps/make_groups.md @@ -4,20 +4,22 @@ analysis(rs$splits[[1]]) Output # A tibble: 87 x 14 - name height mass hair_color skin_color eye_color birth_year sex gender - - 1 Luke Sk~ 172 77 blond fair blue 19 male mascu~ - 2 C-3PO 167 75 gold yellow 112 none mascu~ - 3 Darth V~ 202 136 none white yellow 41.9 male mascu~ - 4 Leia Or~ 150 49 brown light brown 19 fema~ femin~ - 5 Leia Or~ 150 49 brown light brown 19 fema~ femin~ - 6 Leia Or~ 150 49 brown light brown 19 fema~ femin~ - 7 Beru Wh~ 165 75 brown light blue 47 fema~ femin~ - 8 Biggs D~ 183 84 black light brown 24 male mascu~ - 9 Biggs D~ 183 84 black light brown 24 male mascu~ - 10 Biggs D~ 183 84 black light brown 24 male mascu~ - # ... with 77 more rows, and 5 more variables: homeworld , species , - # films , vehicles , starships + name height mass hair_~1 skin_~2 eye_c~3 birth~4 sex gender homew~5 + + 1 Luke Skywa~ 172 77 blond fair blue 19 male mascu~ Tatooi~ + 2 C-3PO 167 75 gold yellow 112 none mascu~ Tatooi~ + 3 Darth Vader 202 136 none white yellow 41.9 male mascu~ Tatooi~ + 4 Leia Organa 150 49 brown light brown 19 fema~ femin~ Aldera~ + 5 Leia Organa 150 49 brown light brown 19 fema~ femin~ Aldera~ + 6 Leia Organa 150 49 brown light brown 19 fema~ femin~ Aldera~ + 7 Beru White~ 165 75 brown light blue 47 fema~ femin~ Tatooi~ + 8 Biggs Dark~ 183 84 black light brown 24 male mascu~ Tatooi~ + 9 Biggs Dark~ 183 84 black light brown 24 male mascu~ Tatooi~ + 10 Biggs Dark~ 183 84 black light brown 24 male mascu~ Tatooi~ + # ... with 77 more rows, 4 more variables: species , films , + # vehicles , starships , and abbreviated variable names + # 1: hair_color, 2: skin_color, 3: eye_color, 4: birth_year, 5: homeworld + # i Use `print(n = ...)` to see more rows, and `colnames()` to see all variable names --- @@ -25,20 +27,22 @@ analysis(rs$splits[[1]]) Output # A tibble: 86 x 14 - name height mass hair_color skin_color eye_color birth_year sex gender - - 1 Luke Sk~ 172 77 blond fair blue 19 male mascu~ - 2 C-3PO 167 75 gold yellow 112 none mascu~ - 3 R2-D2 96 32 white, bl~ red 33 none mascu~ - 4 Darth V~ 202 136 none white yellow 41.9 male mascu~ - 5 Leia Or~ 150 49 brown light brown 19 fema~ femin~ - 6 Owen La~ 178 120 brown, gr~ light blue 52 male mascu~ - 7 Beru Wh~ 165 75 brown light blue 47 fema~ femin~ - 8 R5-D4 97 32 white, red red NA none mascu~ - 9 Biggs D~ 183 84 black light brown 24 male mascu~ - 10 Obi-Wan~ 182 77 auburn, w~ fair blue-gray 57 male mascu~ - # ... with 76 more rows, and 5 more variables: homeworld , species , - # films , vehicles , starships + name height mass hair_~1 skin_~2 eye_c~3 birth~4 sex gender homew~5 + + 1 Luke Skywa~ 172 77 blond fair blue 19 male mascu~ Tatooi~ + 2 C-3PO 167 75 gold yellow 112 none mascu~ Tatooi~ + 3 R2-D2 96 32 white,~ red 33 none mascu~ Naboo + 4 Darth Vader 202 136 none white yellow 41.9 male mascu~ Tatooi~ + 5 Leia Organa 150 49 brown light brown 19 fema~ femin~ Aldera~ + 6 Owen Lars 178 120 brown,~ light blue 52 male mascu~ Tatooi~ + 7 Beru White~ 165 75 brown light blue 47 fema~ femin~ Tatooi~ + 8 R5-D4 97 32 white,~ red NA none mascu~ Tatooi~ + 9 Biggs Dark~ 183 84 black light brown 24 male mascu~ Tatooi~ + 10 Obi-Wan Ke~ 182 77 auburn~ fair blue-g~ 57 male mascu~ Stewjon + # ... with 76 more rows, 4 more variables: species , films , + # vehicles , starships , and abbreviated variable names + # 1: hair_color, 2: skin_color, 3: eye_color, 4: birth_year, 5: homeworld + # i Use `print(n = ...)` to see more rows, and `colnames()` to see all variable names --- @@ -46,20 +50,22 @@ analysis(rs$splits[[1]]) Output # A tibble: 65 x 14 - name height mass hair_color skin_color eye_color birth_year sex gender - - 1 C-3PO 167 75 gold yellow 112 none mascu~ - 2 R2-D2 96 32 white, bl~ red 33 none mascu~ - 3 Leia Or~ 150 49 brown light brown 19 fema~ femin~ - 4 Owen La~ 178 120 brown, gr~ light blue 52 male mascu~ - 5 Beru Wh~ 165 75 brown light blue 47 fema~ femin~ - 6 R5-D4 97 32 white, red red NA none mascu~ - 7 Biggs D~ 183 84 black light brown 24 male mascu~ - 8 Obi-Wan~ 182 77 auburn, w~ fair blue-gray 57 male mascu~ - 9 Anakin ~ 188 84 blond fair blue 41.9 male mascu~ - 10 Greedo 173 74 green black 44 male mascu~ - # ... with 55 more rows, and 5 more variables: homeworld , species , - # films , vehicles , starships + name height mass hair_~1 skin_~2 eye_c~3 birth~4 sex gender homew~5 + + 1 C-3PO 167 75 gold yellow 112 none mascu~ Tatooi~ + 2 R2-D2 96 32 white,~ red 33 none mascu~ Naboo + 3 Leia Organa 150 49 brown light brown 19 fema~ femin~ Aldera~ + 4 Owen Lars 178 120 brown,~ light blue 52 male mascu~ Tatooi~ + 5 Beru White~ 165 75 brown light blue 47 fema~ femin~ Tatooi~ + 6 R5-D4 97 32 white,~ red NA none mascu~ Tatooi~ + 7 Biggs Dark~ 183 84 black light brown 24 male mascu~ Tatooi~ + 8 Obi-Wan Ke~ 182 77 auburn~ fair blue-g~ 57 male mascu~ Stewjon + 9 Anakin Sky~ 188 84 blond fair blue 41.9 male mascu~ Tatooi~ + 10 Greedo 173 74 green black 44 male mascu~ Rodia + # ... with 55 more rows, 4 more variables: species , films , + # vehicles , starships , and abbreviated variable names + # 1: hair_color, 2: skin_color, 3: eye_color, 4: birth_year, 5: homeworld + # i Use `print(n = ...)` to see more rows, and `colnames()` to see all variable names --- @@ -67,18 +73,20 @@ analysis(rs$splits[[1]]) Output # A tibble: 65 x 14 - name height mass hair_color skin_color eye_color birth_year sex gender - - 1 C-3PO 167 75 gold yellow 112 none mascu~ - 2 Darth V~ 202 136 none white yellow 41.9 male mascu~ - 3 Leia Or~ 150 49 brown light brown 19 fema~ femin~ - 4 Owen La~ 178 120 brown, gr~ light blue 52 male mascu~ - 5 Beru Wh~ 165 75 brown light blue 47 fema~ femin~ - 6 R5-D4 97 32 white, red red NA none mascu~ - 7 Biggs D~ 183 84 black light brown 24 male mascu~ - 8 Obi-Wan~ 182 77 auburn, w~ fair blue-gray 57 male mascu~ - 9 Wilhuff~ 180 NA auburn, g~ fair blue 64 male mascu~ - 10 Chewbac~ 228 112 brown unknown blue 200 male mascu~ - # ... with 55 more rows, and 5 more variables: homeworld , species , - # films , vehicles , starships + name height mass hair_~1 skin_~2 eye_c~3 birth~4 sex gender homew~5 + + 1 C-3PO 167 75 gold yellow 112 none mascu~ Tatooi~ + 2 Darth Vader 202 136 none white yellow 41.9 male mascu~ Tatooi~ + 3 Leia Organa 150 49 brown light brown 19 fema~ femin~ Aldera~ + 4 Owen Lars 178 120 brown,~ light blue 52 male mascu~ Tatooi~ + 5 Beru White~ 165 75 brown light blue 47 fema~ femin~ Tatooi~ + 6 R5-D4 97 32 white,~ red NA none mascu~ Tatooi~ + 7 Biggs Dark~ 183 84 black light brown 24 male mascu~ Tatooi~ + 8 Obi-Wan Ke~ 182 77 auburn~ fair blue-g~ 57 male mascu~ Stewjon + 9 Wilhuff Ta~ 180 NA auburn~ fair blue 64 male mascu~ Eriadu + 10 Chewbacca 228 112 brown unknown blue 200 male mascu~ Kashyy~ + # ... with 55 more rows, 4 more variables: species , films , + # vehicles , starships , and abbreviated variable names + # 1: hair_color, 2: skin_color, 3: eye_color, 4: birth_year, 5: homeworld + # i Use `print(n = ...)` to see more rows, and `colnames()` to see all variable names diff --git a/tests/testthat/_snaps/mc.md b/tests/testthat/_snaps/mc.md index 4a0e61e2..d0ac4c44 100644 --- a/tests/testthat/_snaps/mc.md +++ b/tests/testthat/_snaps/mc.md @@ -18,6 +18,7 @@ 9 Resample09 10 Resample10 # ... with 15 more rows + # i Use `print(n = ...)` to see more rows # grouping - bad args @@ -48,6 +49,7 @@ 9 Resample09 10 Resample10 # ... with 15 more rows + # i Use `print(n = ...)` to see more rows # grouping - printing with ... @@ -61,4 +63,5 @@ 1 Resample01 2 Resample02 # ... with 23 more rows + # i Use `print(n = ...)` to see more rows diff --git a/tests/testthat/_snaps/misc.md b/tests/testthat/_snaps/misc.md index 4038443d..03a5d411 100644 --- a/tests/testthat/_snaps/misc.md +++ b/tests/testthat/_snaps/misc.md @@ -22,30 +22,6 @@ Error in `reverse_splits()`: ! Permutations cannot have their splits reversed ---- - - Code - reverse_splits(1) - Condition - Error in `reverse_splits()`: - ! `x` must be either an `rsplit` or an `rset` object - ---- - - Code - reverse_splits(permutes) - Condition - Error in `reverse_splits()`: - ! Permutations cannot have their splits reversed - ---- - - Code - reverse_splits(permutes$splits[[1]]) - Condition - Error in `reverse_splits()`: - ! Permutations cannot have their splits reversed - # reshuffle_rset is working Code @@ -69,6 +45,7 @@ 9 Slice09 10 Slice10 # ... with 39 more rows + # i Use `print(n = ...)` to see more rows --- @@ -113,6 +90,7 @@ 9 Slice09 10 Slice10 # ... with 39 more rows + # i Use `print(n = ...)` to see more rows --- @@ -137,6 +115,7 @@ 9 Slice09 10 Slice10 # ... with 35 more rows + # i Use `print(n = ...)` to see more rows --- diff --git a/tests/testthat/_snaps/permutations.md b/tests/testthat/_snaps/permutations.md index 2e6bb4fb..79ee4642 100644 --- a/tests/testthat/_snaps/permutations.md +++ b/tests/testthat/_snaps/permutations.md @@ -27,4 +27,5 @@ 9 Permutations09 10 Permutations10 # ... with 15 more rows + # i Use `print(n = ...)` to see more rows diff --git a/tests/testthat/_snaps/vfold.md b/tests/testthat/_snaps/vfold.md index 4255b547..0ebc9554 100644 --- a/tests/testthat/_snaps/vfold.md +++ b/tests/testthat/_snaps/vfold.md @@ -87,4 +87,5 @@ 1 Resample1 2 Resample2 # ... with 1 more row + # i Use `print(n = ...)` to see more rows