Skip to content

Commit 4bdced8

Browse files
committed
update snapshot
1 parent f94ea34 commit 4bdced8

4 files changed

+38
-0
lines changed

tests/testthat/_snaps/display_print_dataframe.md

+20
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,23 @@
1818
p-value adjustment method: Holm (1979)
1919
Observations: 150
2020

21+
---
22+
23+
Code
24+
print_md(correlation(iris))
25+
Output
26+
27+
28+
Table: Correlation Matrix (pearson-method)
29+
30+
|Parameter1 | Parameter2 | r | 95% CI | t(148) | p |
31+
|:------------|:------------:|:-----:|:--------------:|:------:|:---------:|
32+
|Sepal.Length | Sepal.Width | -0.12 | (-0.27, 0.04) | -1.44 | 0.152 |
33+
|Sepal.Length | Petal.Length | 0.87 | (0.83, 0.91) | 21.65 | < .001*** |
34+
|Sepal.Length | Petal.Width | 0.82 | (0.76, 0.86) | 17.30 | < .001*** |
35+
|Sepal.Width | Petal.Length | -0.43 | (-0.55, -0.29) | -5.77 | < .001*** |
36+
|Sepal.Width | Petal.Width | -0.37 | (-0.50, -0.22) | -4.79 | < .001*** |
37+
|Petal.Length | Petal.Width | 0.96 | (0.95, 0.97) | 43.39 | < .001*** |
38+
p-value adjustment method: Holm (1979)
39+
Observations: 150
40+

tests/testthat/_snaps/display_print_matrix.md

+16
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,22 @@
55
Output
66
77
8+
Table: Correlation Matrix (pearson-method)
9+
10+
|Parameter | Petal.Width | Petal.Length | Sepal.Width |
11+
|:------------|:-----------:|:------------:|:-----------:|
12+
|Sepal.Length | 0.82*** | 0.87*** | -0.12 |
13+
|Sepal.Width | -0.37*** | -0.43*** | |
14+
|Petal.Length | 0.96*** | | |
15+
p-value adjustment method: Holm (1979)
16+
17+
---
18+
19+
Code
20+
print_md(summary(correlation(iris)))
21+
Output
22+
23+
824
Table: Correlation Matrix (pearson-method)
925
1026
|Parameter | Petal.Width | Petal.Length | Sepal.Width |

tests/testthat/test-display_print_dataframe.R

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ test_that("display and print method works - markdown", {
22
skip_on_cran()
33
skip_if_not_or_load_if_installed("knitr")
44
expect_snapshot(display(correlation(iris)))
5+
expect_snapshot(print_md(correlation(iris)))
56
})
67

78
# display and print method works - HTML -----------------------------

tests/testthat/test-display_print_matrix.R

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ test_that("display and print method works - markdown", {
44
skip_on_cran()
55
skip_if_not_or_load_if_installed("knitr")
66
expect_snapshot(display(summary(correlation(iris))))
7+
expect_snapshot(print_md(summary(correlation(iris))))
78
})
89

910
# display and print method works - html -----------------------------

0 commit comments

Comments
 (0)