Skip to content

Commit 6edc382

Browse files
committed
import deprecated
1 parent 2e875c6 commit 6edc382

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

NAMESPACE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ importFrom(dplyr,slice)
139139
importFrom(dplyr,tibble)
140140
importFrom(dplyr,ungroup)
141141
importFrom(ggplot2,autoplot)
142+
importFrom(lifecycle,deprecated)
142143
importFrom(lubridate,as.period)
143144
importFrom(lubridate,days)
144145
importFrom(lubridate,weeks)

R/utils.R

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -526,6 +526,8 @@ list2var <- function(x) {
526526
#' bad_wrapper1 <- function(x) fn(x)
527527
#' bad_wrapper1() # TRUE, bad
528528
#'
529+
#' @importFrom lifecycle deprecated
530+
#'
529531
#' @noRd
530532
deprecated_quo_is_present <- function(quo) {
531533
if (!rlang::is_quosure(quo)) {
@@ -536,7 +538,7 @@ deprecated_quo_is_present <- function(quo) {
536538
FALSE
537539
} else {
538540
quo_expr <- rlang::get_expr(quo)
539-
if (identical(quo_expr, rlang::expr(lifecycle::deprecated())) || identical(quo_expr, rlang::expr(lifecycle::deprecated()))) { # nolint: object_usage_linter
541+
if (identical(quo_expr, rlang::expr(deprecated())) || identical(quo_expr, rlang::expr(lifecycle::deprecated()))) { # nolint: object_usage_linter
540542
FALSE
541543
} else {
542544
TRUE

0 commit comments

Comments
 (0)