Add "(Deprecated)" after the @description Roxygen2 Tag

add_deprecated_to_desc(text)

Arguments

text

Character vector containing function declarations.

See also

str_replace

Other modify roxygen2 documentation functions: add_deprecated_call()

Examples

library(tidyverse) # Adds "Deprecated" after each Roxygen2 Tag add_deprecated_to_desc(text = "#' This is the title\n#' @description\n#' This is the description.")
#> [1] "#' This is the title\n#' @description (Deprecated)\n#' This is the description."