diff --git a/R/text_format.R b/R/text_format.R index 1b4f5b561..46cbf2ee0 100644 --- a/R/text_format.R +++ b/R/text_format.R @@ -6,15 +6,7 @@ #' @param width Positive integer giving the target column width for wrapping #' lines in the output. Can be "auto", in which case it will select 90\% of the #' default width. -#' @param pattern Character vector. -#' - For `data_addprefix()` or `data_addsuffix()`, a character string, which -#' will be added as prefix or suffix to the column names. -#' - For `data_rename()`, indicates columns that should be selected for -#' renaming. Can be `NULL` (in which case all columns are selected). -#' `pattern` can also be a named vector. In this case, names are used as -#' values for the `replacement` argument (i.e. `pattern` can be a character -#' vector using ` = ""` and argument `replacement` will -#' be ignored then). +#' @param pattern Regex pattern to remove from `text`. #' @param sep Separator. #' @param last Last separator. #' @param n The number of characters to find. diff --git a/man/text_format.Rd b/man/text_format.Rd index 16c76e67c..082e3cbe1 100644 --- a/man/text_format.Rd +++ b/man/text_format.Rd @@ -50,17 +50,7 @@ text elements will not be enclosed.} \item{n}{The number of characters to find.} -\item{pattern}{Character vector. -\itemize{ -\item For \code{data_addprefix()} or \code{data_addsuffix()}, a character string, which -will be added as prefix or suffix to the column names. -\item For \code{data_rename()}, indicates columns that should be selected for -renaming. Can be \code{NULL} (in which case all columns are selected). -\code{pattern} can also be a named vector. In this case, names are used as -values for the \code{replacement} argument (i.e. \code{pattern} can be a character -vector using \verb{ = ""} and argument \code{replacement} will -be ignored then). -}} +\item{pattern}{Regex pattern to remove from \code{text}.} } \value{ A character string.