Skip to content

Commit

Permalink
Update scale-unit.R (#301)
Browse files Browse the repository at this point in the history
  • Loading branch information
bart1 authored Jan 16, 2024
1 parent af752b4 commit f0c079d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions R/scale-unit.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#' class. These will usually be added automatically. To override manually, use
#' `scale_*_unit`.
#'
#' @param ... Passed on to `units::scale_x_unit()` or `units::scale_y_unit()`
#' @param ... Passed on to `units::scale_x_units()` or `units::scale_y_units()`
#'
#' @name scale_unit
#' @aliases NULL
Expand All @@ -15,15 +15,15 @@ NULL
#' @export
#' @importFrom scales censor
scale_x_unit <- function(...) {
lifecycle::deprecate_soft('0.3.4', "scale_x_unit()", "units::scale_x_unit()")
lifecycle::deprecate_soft('0.3.4', "scale_x_unit()", "units::scale_x_units()")
check_installed('units', 'to use scale_x_unit')
units::scale_x_units(...)
}
#' @rdname scale_unit
#' @export
#' @importFrom scales censor
scale_y_unit <- function(...) {
lifecycle::deprecate_soft('0.3.4', "scale_y_unit()", "units::scale_y_unit()")
lifecycle::deprecate_soft('0.3.4', "scale_y_unit()", "units::scale_y_units()")
check_installed('units', 'to use scale_y_unit')
units::scale_y_units(...)
}

0 comments on commit f0c079d

Please sign in to comment.