Debian Codegraph @

tests/testthat/_snaps/utilities.md

raw symbols SCIP
1 # ellipsis checking works
2
3 Code
4 check_ellipses("exponentiate", "tidy", "boop", exponentiate = TRUE)
5 Condition
6 Warning:
7 The `exponentiate` argument is not supported in the `tidy()` method for `boop` objects and will be ignored.
8
9 ---
10
11 Code
12 check_ellipses("exponentiate", "tidy", "boop", exponentiate = TRUE, quick = FALSE)
13 Condition
14 Warning:
15 The `exponentiate` argument is not supported in the `tidy()` method for `boop` objects and will be ignored.
16
17 # ellipsis checking works (whole game, tidy)
18
19 Code
20 tidy(mod, exponentiate = TRUE)
21 Condition
22 Warning:
23 The `exponentiate` argument is not supported in the `tidy()` method for `nls` objects and will be ignored.
24 Output
25 # A tibble: 2 x 5
26 term estimate std.error statistic p.value
27 <chr> <dbl> <dbl> <dbl> <dbl>
28 1 k 49.7 3.79 13.1 5.96e-14
29 2 e 0.746 0.0199 37.5 8.86e-27
30
31 # ellipsis checking works (whole game, augment)
32
33 Code
34 .res <- augment(mod, data = mtcars, newdata = mtcars)
35 Condition
36 Warning:
37 The `newdata` argument is not supported in the `augment()` method for `kmeans` objects and will be ignored.
38
39 # as_glance_tibble
40
41 Code
42 as_glance_tibble(x = 1, y = 1, na_types = "rrr")
43 Condition
44 Error in `as_glance_tibble()`:
45 ! The number of columns provided does not match the number of column types provided.
46
47 # appropriate warning on (g)lm-subclassed models
48
49 Code
50 warn_on_subclass(x, "tidy")
51 Condition
52 Warning:
53 The `tidy()` method for objects of class `boop` is not maintained by the broom team, and is only supported through the `glm` tidier method. Please be cautious in interpreting and reporting broom output.
54
55 This warning is displayed once per session.
56
57 ---
58
59 Code
60 warn_on_subclass(x, "tidy")
61 Condition
62 Warning:
63 The `tidy()` method for objects of class `bop` is not maintained by the broom team, and is only supported through the `glm` tidier method. Please be cautious in interpreting and reporting broom output.
64
65 This warning is displayed once per session.
66
67 # as_augment_tibble errors informatively
68
69 Code
70 as_augment_tibble(m)
71 Condition
72 Error in `as_augment_tibble()`:
73 ! `m` is an unnamed matrix.
74 i Please supply a matrix or data frame with column names.
75