diff --git a/R/scale_continuous_sg.R b/R/scale_continuous_sg.R index b76cb8d..1edbe0f 100644 --- a/R/scale_continuous_sg.R +++ b/R/scale_continuous_sg.R @@ -5,7 +5,8 @@ #' @param na.value Colour to set for missing values. #' @param guide A name or function used to create guide. Default is "colourbar". #' @inheritParams scale_colour_discrete_sg -#' @param na_colour `r lifecycle::badge('deprecated')` Use `na.value` instead. +#' @param na_colour `r lifecycle::badge('deprecated')` Use the `na.value` +#' argument instead. #' #' @returns ggplot2 continuous colour/fill scale #' @@ -32,7 +33,7 @@ scale_colour_continuous_sg <- function(palette = "sequential", if (lifecycle::is_present(na_colour)) { lifecycle::deprecate_warn( - when = "0.4.0", + when = "0.5.0", what = "scale_colour_continuous_sg(na_colour)", with = "scale_colour_continuous_sg(na.value)" ) @@ -67,7 +68,7 @@ scale_fill_continuous_sg <- function(palette = "sequential", if (lifecycle::is_present(na_colour)) { lifecycle::deprecate_warn( - when = "0.4.0", + when = "0.5.0", what = "scale_fill_continuous_sg(na_colour)", with = "scale_fill_continuous_sg(na.value)" ) diff --git a/R/use_sgplot.R b/R/use_sgplot.R index cdd1da3..0f4b59d 100644 --- a/R/use_sgplot.R +++ b/R/use_sgplot.R @@ -44,12 +44,10 @@ use_sgplot <- function(palette_type = "sg", if (lifecycle::is_present(default_colour)) { lifecycle::deprecate_warn( - when = "0.4.0", + when = "0.5.0", what = "use_sgplot(default_colour)", - details = c( - "Please use the `palette_type` argument instead.", - "The `default colour` value supplied will not be used." - ) + with = "use_sgplot(palette_type)", + details = "The `default colour` argument supplied will not be used." ) } diff --git a/man/scale_colour_continuous_sg.Rd b/man/scale_colour_continuous_sg.Rd index f2a5cb3..c4585ab 100644 --- a/man/scale_colour_continuous_sg.Rd +++ b/man/scale_colour_continuous_sg.Rd @@ -41,7 +41,8 @@ reversed.} \item{...}{Additional arguments passed to scale type.} -\item{na_colour}{\ifelse{html}{\href{https://lifecycle.r-lib.org/articles/stages.html#deprecated}{\figure{lifecycle-deprecated.svg}{options: alt='[Deprecated]'}}}{\strong{[Deprecated]}} Use \code{na.value} instead.} +\item{na_colour}{\ifelse{html}{\href{https://lifecycle.r-lib.org/articles/stages.html#deprecated}{\figure{lifecycle-deprecated.svg}{options: alt='[Deprecated]'}}}{\strong{[Deprecated]}} Use the \code{na.value} +argument instead.} } \value{ ggplot2 continuous colour/fill scale