R/migration.R

Defines functions fa

Documented in fa

#' Migration tools
#'
#' The icon package has been overhauled to be more efficient and extensible.
#' Unfortunately this has led to several necessary interface changes. To
#' minimise impact, please use the `migrate_icon()` function to update your files
#' to use the new interface.
#'
#' @param ... Unused.
#'
#' @rdname migration
#' @export
fa <- function(...){
  msg(glue(crayon::red(cli::symbol$warning), "  A rewrite of the icons package has introduced breaking changes."))
  msg(glue(crayon::blue(cli::symbol$info), "  Refer to the NEWS (https://pkg.mitchelloharawild.com/icons/news/) to read the changes."))
  abort("Update to the new interface for the icons package.")
}

#' @rdname migration
#' @export
ii <- fa

#' @rdname migration
#' @export
ai <- fa
mitchelloharawild/icon documentation built on Aug. 21, 2023, 2:48 a.m.