Skip to content

Commit

Permalink
Fix str_view_all() deprecation warning (#490)
Browse files Browse the repository at this point in the history
Fixes #485
  • Loading branch information
matthewjnield authored Jan 1, 2023
1 parent e4601f7 commit 7413003
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion R/view.R
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ str_view <- function(string, pattern = NULL, match = TRUE, html = FALSE, use_esc
#' @usage NULL
#' @export
str_view_all <- function(string, pattern = NULL, match = NA, html = FALSE, use_escapes = FALSE) {
lifecycle::deprecate_warn("1.5.0", "str_view()", "str_view_all()")
lifecycle::deprecate_warn("1.5.0", "str_view_all()", "str_view()")

str_view(
string = string,
Expand Down
4 changes: 2 additions & 2 deletions tests/testthat/_snaps/view.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@
str_view_all("abc", "a|b")
Condition
Warning:
`str_view()` was deprecated in stringr 1.5.0.
i Please use `str_view_all()` instead.
`str_view_all()` was deprecated in stringr 1.5.0.
i Please use `str_view()` instead.
Output
[1] | <a><b>c

Expand Down

0 comments on commit 7413003

Please sign in to comment.