From afb7fda170c59866ad6c1b3cdbfe99df0f62be64 Mon Sep 17 00:00:00 2001 From: Emi Tanaka Date: Mon, 26 Sep 2022 21:42:09 +1000 Subject: [PATCH] update snapshot -- print behaviour for tibble changed --- tests/testthat/_snaps/menu.md | 6 ++++++ tests/testthat/_snaps/rcrds.md | 31 +++++++++++++++++-------------- tests/testthat/_snaps/serve.md | 1 + tests/testthat/_snaps/trts.md | 4 ++++ tests/testthat/_snaps/units.md | 2 ++ 5 files changed, 30 insertions(+), 14 deletions(-) diff --git a/tests/testthat/_snaps/menu.md b/tests/testthat/_snaps/menu.md index 49f62789..5cd54dac 100644 --- a/tests/testthat/_snaps/menu.md +++ b/tests/testthat/_snaps/menu.md @@ -26,6 +26,7 @@ 9 unit9 trt2 10 unit10 trt4 # ... with 14 more rows + # i Use `print(n = ...)` to see more rows # rcbd @@ -127,6 +128,7 @@ 9 block2 row6 col3 unit9 trt11 trt22 10 block2 row4 col4 unit10 trt12 trt21 # ... with 14 more rows + # i Use `print(n = ...)` to see more rows # factorial @@ -159,6 +161,7 @@ 9 unit9 trt11 trt23 trt32 10 unit10 trt11 trt23 trt33 # ... with 38 more rows + # i Use `print(n = ...)` to see more rows Code fac_rcbd <- takeout(menu_factorial(trt = c(2, 3, 4), design = "rcbd", r = 2, seed = 1)) @@ -189,6 +192,7 @@ 9 block1 unit9 trt12 trt21 trt31 10 block1 unit10 trt11 trt21 trt31 # ... with 38 more rows + # i Use `print(n = ...)` to see more rows # lsd @@ -220,6 +224,7 @@ 9 row9 col1 unit9 trt2 10 row10 col1 unit10 trt8 # ... with 90 more rows + # i Use `print(n = ...)` to see more rows # youden @@ -251,4 +256,5 @@ 9 row9 col1 unit9 trt2 10 row10 col1 unit10 trt8 # ... with 60 more rows + # i Use `print(n = ...)` to see more rows diff --git a/tests/testthat/_snaps/rcrds.md b/tests/testthat/_snaps/rcrds.md index cd0e868d..869442e3 100644 --- a/tests/testthat/_snaps/rcrds.md +++ b/tests/testthat/_snaps/rcrds.md @@ -18,6 +18,7 @@ 9 class1 student9 traditional closed-book o x 10 class1 student10 traditional open-book o x # ... with 110 more rows + # i Use `print(n = ...)` to see more rows --- @@ -59,6 +60,7 @@ 9 class1 student9 traditional closed-book o x 10 class1 student10 traditional open-book o x # ... with 110 more rows + # i Use `print(n = ...)` to see more rows --- @@ -90,20 +92,21 @@ Output # Effective teaching # An edibble: 120 x 10 - class student style exam exam_mark quiz1_mark quiz2_mark - - 1 class1 student1 traditional closed-book o o o - 2 class1 student2 traditional closed-book o o o - 3 class1 student3 traditional take-home o o o - 4 class1 student4 traditional take-home o o o - 5 class1 student5 traditional open-book o o o - 6 class1 student6 traditional take-home o o o - 7 class1 student7 traditional take-home o o o - 8 class1 student8 traditional closed-book o o o - 9 class1 student9 traditional closed-book o o o - 10 class1 student10 traditional open-book o o o - # ... with 110 more rows, and 3 more variables: gender , room , - # teacher + class student style exam exam_m~1 quiz1~2 quiz2~3 gender + + 1 class1 student1 traditional closed-book o o o o + 2 class1 student2 traditional closed-book o o o o + 3 class1 student3 traditional take-home o o o o + 4 class1 student4 traditional take-home o o o o + 5 class1 student5 traditional open-book o o o o + 6 class1 student6 traditional take-home o o o o + 7 class1 student7 traditional take-home o o o o + 8 class1 student8 traditional closed-book o o o o + 9 class1 student9 traditional closed-book o o o o + 10 class1 student10 traditional open-book o o o o + # ... with 110 more rows, 2 more variables: room , teacher , and + # abbreviated variable names 1: exam_mark, 2: quiz1_mark, 3: quiz2_mark + # i Use `print(n = ...)` to see more rows, and `colnames()` to see all variable names --- diff --git a/tests/testthat/_snaps/serve.md b/tests/testthat/_snaps/serve.md index 0a3a3807..38d4f8a4 100644 --- a/tests/testthat/_snaps/serve.md +++ b/tests/testthat/_snaps/serve.md @@ -7,6 +7,7 @@ # unlinked units with table # An edibble: 0 x 2 # ... with 2 variables: block , plot + # i Use `colnames()` to see all variable names --- diff --git a/tests/testthat/_snaps/trts.md b/tests/testthat/_snaps/trts.md index 367394b7..04ef401e 100644 --- a/tests/testthat/_snaps/trts.md +++ b/tests/testthat/_snaps/trts.md @@ -55,6 +55,7 @@ 9 vaccine3 sex1 person9 10 vaccine1 sex2 person10 # ... with 20 more rows + # i Use `print(n = ...)` to see more rows --- @@ -77,6 +78,7 @@ 9 vaccine3 F person9 10 vaccine1 M person10 # ... with 20 more rows + # i Use `print(n = ...)` to see more rows --- @@ -99,6 +101,7 @@ 9 vaccine3 F person9 10 vaccine1 M person10 # ... with 20 more rows + # i Use `print(n = ...)` to see more rows --- @@ -120,6 +123,7 @@ 9 vaccine3 person9 10 vaccine1 person10 # ... with 20 more rows + # i Use `print(n = ...)` to see more rows --- diff --git a/tests/testthat/_snaps/units.md b/tests/testthat/_snaps/units.md index 0e32d3e7..a7caf0e9 100644 --- a/tests/testthat/_snaps/units.md +++ b/tests/testthat/_snaps/units.md @@ -48,6 +48,7 @@ 9 row3 col1 site1 plot9 10 row3 col1 site2 plot10 # ... with 38 more rows + # i Use `print(n = ...)` to see more rows --- @@ -69,4 +70,5 @@ 9 site2 row5 col1 plot9 10 site2 row5 col1 plot10 # ... with 50 more rows + # i Use `print(n = ...)` to see more rows