Skip to content

Commit f83e0e6

Browse files
authored
Update for latest air (#390)
1 parent 90b3fde commit f83e0e6

File tree

2 files changed

+15
-24
lines changed

2 files changed

+15
-24
lines changed

.Rbuildignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,4 @@
2222
^CRAN-SUBMISSION$
2323
^[\.]?air\.toml$
2424
^\.vscode$
25+
^[.]?air[.]toml$

tests/testthat/test-reorder.R

Lines changed: 14 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -59,21 +59,11 @@ test_that("fct_reorder() validates its inputs", {
5959

6060
test_that("can reorder by 2d summary", {
6161
df <- tibble::tribble(
62-
~g,
63-
~x,
64-
~y,
65-
"a",
66-
1,
67-
10,
68-
"a",
69-
2,
70-
5,
71-
"b",
72-
1,
73-
5,
74-
"b",
75-
2,
76-
10
62+
~g , ~x , ~y ,
63+
"a" , 1 , 10 ,
64+
"a" , 2 , 5 ,
65+
"b" , 1 , 5 ,
66+
"b" , 2 , 10
7767
)
7868

7969
f1 <- fct_reorder2(df$g, df$x, df$y)
@@ -108,15 +98,15 @@ test_that("can control the placement of empty levels", {
10898

10999
test_that("missing groups appear at end by default", {
110100
df <- tibble::tribble(
111-
~g,
112-
~x,
113-
~y,
114-
"a",
115-
NA,
116-
NA,
117-
"b",
118-
1,
119-
10,
101+
~g ,
102+
~x ,
103+
~y ,
104+
"a" ,
105+
NA ,
106+
NA ,
107+
"b" ,
108+
1 ,
109+
10 ,
120110
)
121111

122112
f1 <- fct_reorder2(df$g, df$x, df$y, .na_rm = TRUE)

0 commit comments

Comments
 (0)