-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
transition to lifecycle for deprecations (#531)
* use lifecycle * hard-deprecate `p_value()` and `conf_int()` * transition `.Deprecated` to `lifecycle::deprecate_warn()`
- Loading branch information
1 parent
3c9744b
commit 7d437a3
Showing
17 changed files
with
260 additions
and
48 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -1,20 +1,18 @@ | ||
# old aliases produce warning | ||
# old aliases produce informative error | ||
|
||
Code | ||
res <- gss_calc %>% p_value(obs_stat = -0.2, direction = "right") %>% dplyr::pull() | ||
res <- gss_calc %>% p_value(obs_stat = -0.2, direction = "right") | ||
Condition | ||
Warning: | ||
'p_value' is deprecated. | ||
Use 'get_p_value' instead. | ||
See help("Deprecated") | ||
Error: | ||
! `conf_int()` was deprecated in infer 0.4.0 and is now defunct. | ||
i Please use `get_p_value()` instead. | ||
|
||
--- | ||
|
||
Code | ||
res_ <- gss_permute %>% conf_int() | ||
Condition | ||
Warning: | ||
'conf_int' is deprecated. | ||
Use 'get_confidence_interval' instead. | ||
See help("Deprecated") | ||
Error: | ||
! `conf_int()` was deprecated in infer 0.4.0 and is now defunct. | ||
i Please use `get_confidence_interval()` instead. | ||
|
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
Oops, something went wrong.