From cdb6a8919f32e18c9c0fd75b3d64a4d0cdf23ed3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABlle=20Salmon?= Date: Fri, 21 Aug 2026 08:23:53 +0200 Subject: [PATCH 1/2] typo fix --- R/count.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/count.R b/R/count.R index 0a47507d..b193decb 100644 --- a/R/count.R +++ b/R/count.R @@ -16,7 +16,7 @@ #' respects character matching rules for the specified locale. #' #' Match character, word, line and sentence boundaries with -#' [boundary()]. The empty string, `""``, is equivalent to +#' [boundary()]. The empty string, `""`, is equivalent to #' `boundary("character")`. #' @return An integer vector the same length as `string`/`pattern`. #' @seealso [stringi::stri_count()] which this function wraps. From 241550db43917cf28f4d466d281a9775a7316eca Mon Sep 17 00:00:00 2001 From: Hadley Wickham Date: Mon, 26 Oct 2026 15:57:14 -0400 Subject: [PATCH 2/2] Redocument --- man/str_count.Rd | 3 ++- man/str_extract.Rd | 3 ++- man/str_locate.Rd | 3 ++- man/str_split.Rd | 3 ++- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/man/str_count.Rd b/man/str_count.Rd index 06c6d01e..3b83028d 100644 --- a/man/str_count.Rd +++ b/man/str_count.Rd @@ -22,7 +22,8 @@ for matching human text, you'll want \code{\link[=coll]{coll()}} which respects character matching rules for the specified locale. Match character, word, line and sentence boundaries with -\code{\link[=boundary]{boundary()}}. The empty string, \verb{""``, is equivalent to }boundary("character")`.} +\code{\link[=boundary]{boundary()}}. The empty string, \code{""}, is equivalent to +\code{boundary("character")}.} } \value{ An integer vector the same length as \code{string}/\code{pattern}. diff --git a/man/str_extract.Rd b/man/str_extract.Rd index 1c48856c..8006e40b 100644 --- a/man/str_extract.Rd +++ b/man/str_extract.Rd @@ -25,7 +25,8 @@ for matching human text, you'll want \code{\link[=coll]{coll()}} which respects character matching rules for the specified locale. Match character, word, line and sentence boundaries with -\code{\link[=boundary]{boundary()}}. The empty string, \verb{""``, is equivalent to }boundary("character")`.} +\code{\link[=boundary]{boundary()}}. The empty string, \code{""}, is equivalent to +\code{boundary("character")}.} \item{group}{If supplied, instead of returning the complete match, will return the matched text from the specified capturing group.} diff --git a/man/str_locate.Rd b/man/str_locate.Rd index 862be894..a19dfb4f 100644 --- a/man/str_locate.Rd +++ b/man/str_locate.Rd @@ -25,7 +25,8 @@ for matching human text, you'll want \code{\link[=coll]{coll()}} which respects character matching rules for the specified locale. Match character, word, line and sentence boundaries with -\code{\link[=boundary]{boundary()}}. The empty string, \verb{""``, is equivalent to }boundary("character")`.} +\code{\link[=boundary]{boundary()}}. The empty string, \code{""}, is equivalent to +\code{boundary("character")}.} } \value{ \itemize{ diff --git a/man/str_split.Rd b/man/str_split.Rd index 5d056a90..11352d59 100644 --- a/man/str_split.Rd +++ b/man/str_split.Rd @@ -31,7 +31,8 @@ for matching human text, you'll want \code{\link[=coll]{coll()}} which respects character matching rules for the specified locale. Match character, word, line and sentence boundaries with -\code{\link[=boundary]{boundary()}}. The empty string, \verb{""``, is equivalent to }boundary("character")`.} +\code{\link[=boundary]{boundary()}}. The empty string, \code{""}, is equivalent to +\code{boundary("character")}.} \item{n}{Maximum number of pieces to return. Default (Inf) uses all possible split positions.