stringr
Simple consistent wrappers for string operations in R
stringr keeps trading convenient guesses for predictable errors.
◆Recent moves
- 9mo ago
Name preservation, str_ilike() and faster str_replace_all()
Names are preserved across the function set, str_like() becomes case sensitive with str_ilike() added alongside it, and str_replace_all() hands a replacement function all values at once for a large speedup that breaks some existing uses. Case-conversion helpers for camel, snake and kebab arrive too.
View source ↗ - 2y ago
Documentation polish and a str_trunc() fix
Documentation polish and a str_trunc() fix for left and center truncation. A small patch between the two large breaking releases.
View source ↗ - 3y ago
Recycling rules enforced; silent guesses become errors
The release that set the pattern: tidyverse recycling rules enforced so only length-1 vectors recycle, str_c() ignoring NULLs, many warnings promoted to errors, and str_detect() with an empty string now an error rather than silently returning TRUE.
View source ↗ - 3y ago
Hot patch for R CMD check failures
A hot patch to clear R CMD check failures. Nothing reaches users.
View source ↗ - 7y ago
str_starts(), str_ends() and negate arguments
Adds str_starts() and str_ends(), a negate argument on str_subset(), str_detect() and str_which(), and str_to_sentence(). Additive work from before the tightening began.
View source ↗ - 8y ago
Fixes for named replacements, str_trunc() and str_view()
Three small fixes covering modifier functions in named replacements, str_trunc() vectorisation and NA handling in str_view(). Routine.
View source ↗