-
Notifications
You must be signed in to change notification settings - Fork 303
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
snapshot test untested erroring code (closes #1231)
- Loading branch information
1 parent
334024e
commit b0ab454
Showing
26 changed files
with
206 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# glance.tbl_df errors informatively | ||
|
||
Code | ||
glance.tbl_df(tibble::tibble(x = 1)) | ||
Condition | ||
Error in `glance.tbl_df()`: | ||
! There is no glance method for tibbles. | ||
i Did you mean `tibble::glimpse()`? | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# tidy_svd errors informatively | ||
|
||
Code | ||
tidy_svd(matrix = c("u", "v")) | ||
Condition | ||
Error in `tidy_svd()`: | ||
! Must specify a single matrix to tidy. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# tidy.polr messages informatively | ||
|
||
Code | ||
.res <- tidy(fit, p.values = TRUE) | ||
Message | ||
p-values can presently only be returned for models that contain no categorical variables with more than two levels. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# tidy.mediate errors informatively | ||
|
||
Code | ||
tidy(psych_mediate) | ||
Condition | ||
Error in `tidy()`: | ||
! No tidy method for objects of class <mediate> from the psych package. | ||
i The `tidy.mediate()` method is intended for <mediate> objects from the mediation package. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# tidy.gam handles messages informatively | ||
|
||
Code | ||
.res <- tidy(x, conf.int = TRUE) | ||
Message | ||
Confidence intervals only available for parametric terms. | ||
|
||
--- | ||
|
||
Code | ||
.res <- tidy(x, exponentiate = TRUE) | ||
Message | ||
Exponentiating coefficients only available for parametric terms. | ||
|
||
--- | ||
|
||
Code | ||
.res <- tidy(x, conf.int = TRUE, exponentiate = TRUE) | ||
Message | ||
Confidence intervals only available for parametric terms. | ||
Exponentiating coefficients only available for parametric terms. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# augment.glmRob errors informatively | ||
|
||
Code | ||
augment(x) | ||
Condition | ||
Error in `augment()`: | ||
! `augment.glmRob()` has been deprecated as the robust package doesn't provide the functionality necessary to implement an augment method. | ||
i Please see the augment method for <glmrob> objects from robustbase. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# glm tidiers warn informatively with glm.fit2 input | ||
|
||
Code | ||
.res <- tidy(gfit) | ||
Condition | ||
Warning: | ||
`x` seems to be outputted from the glm2 package. | ||
i Tidiers for glm2 output are currently not maintained; please use caution in interpreting broom output. | ||
|
||
# glm tidiers warn informatively with stanreg input | ||
|
||
Code | ||
.res <- tidy(gfit) | ||
Condition | ||
Error in `tidy()`: | ||
! `x` seems to be outputted from the rstanarm package. | ||
i Tidiers for mixed model output now live in broom.mixed. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
test_that("glance.tbl_df errors informatively", { | ||
expect_snapshot(error = TRUE, glance.tbl_df(tibble::tibble(x = 1))) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
test_that("augment.glmRob errors informatively", { | ||
x <- structure(1L, class = "glmRob") | ||
expect_snapshot(error = TRUE, augment(x)) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters