Skip to content

stringr

1.6.0Package record

Simple, Consistent Wrappers for Common String Operations

2,264packages dependsuggested by 298
15.3Mdownloads / year
99.7%test coverage
12/13flavors OK

Overview

About

A consistent, simple and easy to use set of wrappers around the fantastic 'stringi' package. All function and argument names (and positions) are consistent, all functions deal with "NA"'s and zero length vectors in the same way, and the output from one function is easy to feed into the input of another.

Changes in 1.6.0

Breaking changes

  • All relevant stringr functions now preserve names (@jonovik, #575).
  • str_like(ignore_case) is deprecated, with str_like() now always case sensitive to better follow the conventions of the SQL LIKE operator (@edward-burn, #543).
  • In str_replace_all(), a replacement function now receives all values in a single vector. This radically improves performance at the cost of breaking some existing uses (#462).

New features

  • New vignette("locale-sensitive") about locale sensitive functions (@kylieainslie, #404)
  • New str_ilike() that follows the conventions of the SQL ILIKE operator (@edward-burn, #543).
  • New str_to_camel(), str_to_snake(), and str_to_kebab() for changing "programming" case (@librill, #573 + @arnaudgallou, #593).

Minor bug fies and improvements

  • str_* now errors if pattern includes any NAs (@nash-delcamp-slp, #546).
  • str_dup() gains a sep argument so you can add a separator between every repeated value (@edward-burn, #564).
  • str_sub<- now gives a more informative error if value is not the correct length.
Show all changes in 1.6.0Hide the rest of the changes in 1.6.0
  • str_view() displays a message when called with a zero-length character vector (@LouisMPenrod, #497).
  • New [[.stringr_pattern method to match existing [.stringr_pattern (@edward-burn, #569).

From NEWS.md in the release

Install

Health

CRAN checks
1ERROR12OK
Check messages
ERRORre-building of vignette outputsr-release-macos-arm64
Error(s) in re-building vignettes:
--- re-building ‘from-base.Rmd’ using rmarkdown
Error: processing vignette 'from-base.Rmd' failed with diagnostics:
there is no package called ‘sass’
--- failed re-building ‘from-base.Rmd’

--- re-building ‘locale-sensitive.Rmd’ using rmarkdown
Error: processing vignette 'locale-sensitive.Rmd' failed with diagnostics:
there is no package called ‘sass’
--- failed re-building ‘locale-sensitive.Rmd’

--- re-building ‘regular-expressions.Rmd’ using rmarkdown
Error: processing vignette 'regular-expressions.Rmd' failed with diagnostics:
there is no package called ‘sass’
--- failed re-building ‘regular-expressions.Rmd’

--- re-building ‘stringr.Rmd’ using rmarkdown
Error: processing vignette 'stringr.Rmd' failed with diagnostics:
there is no package called ‘sass’
--- failed re-building ‘stringr.Rmd’

SUMMARY: processing the following files failed:
  ‘from-base.Rmd’ ‘locale-sensitive.Rmd’ ‘regular-expressions.Rmd’
  ‘stringr.Rmd’

Error: Vignette re-building failed.
Execution halted

CRAN check page ↗

Slowest check: 2.0 min · r-oldrel-macos-x86_64
Status changes
  • ERROR12 OK, 1 ERRORNow
  • ERROR11 OK, 1 ERROR2026-04-27
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 1.6.0
READMEYes · 544 wordsVignettesYes · 4 · dynamicNEWSYes · 100% structured · mentions 1.6.0Citation fileNoWebsiteYes · pkgdown
Help pages
38 (3 internal)includes a package overview page
Examples that run
100%36 run in a plain check
Exported functions with examples
97%
Documented parameters
93%
Return-value docs
89%
Help pages citing references
0%

Downloads

15.3M
CRAN downloads in the past year
Rank #46 · ~41.9K/day · ~1.3M/mo
Daily download trend is not available in this view yet.
1.1M30 days
3.5M90 days
15.3M1 year
Compare downloads with other packages →
Also on230.2K r2u153 autocran2.1M conda_forge309 bioconda23.2K c2d4u

Repository

673Stars
202Forks
10Open issues
9Open PRs
10Releases
679Commits
86Commit identities
rstringsregular-expression
679 commits · Last activity 2025-11-04 · +0.4% stars, 30d · Default branch at 1.6.0.9000, ahead of CRAN 1.6.0 (checked 2026-10-11)
Responsiveness
How these are sampled
PRs merged (all time)
70%
Median days to close, 50 most recently updated closed issues
87
Median days to close, 50 most recently updated closed PRs
5

Stars over time

2026-07-11 · 6662026-10-11 · 673
PracticesBeta

15 development-tooling and community-health practices detected across 7 families in the upstream repository

Checks run against github.com/tidyverse/stringr on 2026-10-11.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel

Governance and community (1)
Code of conduct
Docs source (4)
README.Rmdpkgdown

GitHub Pages site last deployed 2025-11-04 · The repository has a site deploy workflow

pkgdown site last built 2025-11-04

Coverage (2)
Coverage reporting (Codecov).covrignore
Show all practicesHide 3 practices
Reproducibility and dev environment (1)
data-raw/
CRAN release process (2)
cran-comments.mdrevdep/
Lint, format, editor (3)
AirVS CodeRStudio project
How this is detected·Detection ruleset v3 (2026-09-26)

Dependencies

Declared dependencies
16 external dependencies (excludes base and recommended)

Installing stringr adds 7 packages (6 with compiled code, 14 MB of source tarballs). Heaviest: stringi 11 MB, vctrs 1.0 MB, rlang 766 KB.

Depends (1)
R >= 4.1.0
LinkingTo (0)
none
Enhances (0)
none

Datasets

People & History

People (2)
Author, Maintainer since 0.1.10 (2009), Copyright holder
Copyright holder, Funder · added in 1.5.1
Listed in earlier versions (1)
RStudio
no longer listed · 1.0.0 to 1.5.0
Releases (19)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • 1.6.0Latest
    record
    2025-11-04 · current release · diff ↗ ·
    added 4 exports
    str_ilike, str_to_camel, str_to_kebab, str_to_snake
  • 1.5.2
    record
    2025-09-08 · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • 1.5.1
    record
    2023-11-15 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • 1.5.0
    record
    2022-12-02 · diff ↗ ·
    added 10 exports
    str_equal, str_escape, str_flatten_comma, str_like, str_rank, str_split_1, str_split_i, str_sub_all, str_unique, str_width
  • 1.4.1
    record
    2022-08-21 · diff ↗
  • R
    R 4.2.0 released · 2022-04-22
  • R
    R 4.1.0 released · 2021-05-18
  • R
    R 4.0.0 released · 2020-04-24
  • R
    R 3.6.0 released · 2019-04-26
  • 1.4.0
    record
    2019-02-10 · diff ↗ ·
    added 3 exports
    str_ends, str_starts, str_to_sentence
  • 1.3.1
    record
    2018-05-10 · diff ↗
  • R
    R 3.5.0 released · 2018-04-23
Show 23 earlier eventsHide 23 earlier events
  • 1.3.0
    record
    2018-02-19 · diff ↗ ·
    removed 3 exports
    ignore.case, perl, str_join
    added 6 exports
    str_flatten, str_glue, str_glue_data, str_remove, str_remove_all, str_squish
  • R
    R 3.4.0 released · 2017-04-21
  • 1.2.0
    record
    2017-02-18 · diff ↗ ·
    added 1 export
    str_which
  • 1.1.0
    record
    2016-08-19 · diff ↗ ·
    added 4 exports
    str_interp, str_trunc, str_view, str_view_all
  • R
    R 3.3.0 released · 2016-05-03
  • 1.0.0
    record
    2015-04-30 · diff ↗ ·
    added 12 exports
    %>%, boundary, coll, regex, str_conv, str_order, str_replace_na, str_sort, str_subset, str_to_lower, str_to_title, str_to_upper
  • R
    R 3.2.0 released · 2015-04-16
  • R
    R 3.1.0 released · 2014-04-10
  • R
    R 3.0.0 released · 2013-04-03
  • 0.6.2
    record
    2012-12-06 · diff ↗
  • 0.6.1
    record
    2012-07-25 · diff ↗ ·
    added 1 export
    str_join
  • R
    R 2.15.0 released · 2012-03-30
  • 0.6
    record
    2011-12-08 · diff ↗ ·
    added 1 export
    perl
  • R
    R 2.14.0 released · 2011-10-31
  • 0.5
    record
    2011-06-30 · diff ↗ ·
    added 3 exports
    str_count, word, str_wrap
  • R
    R 2.13.0 released · 2011-04-13
  • R
    R 2.12.0 released · 2010-10-15
  • 0.4
    record
    2010-08-24 · diff ↗ ·
    added 21 exports
    str_c, str_detect, str_dup, str_extract, str_extract_all, str_length, str_locate, str_locate_all, invert_match, str_match, str_match_all, fixed, ignore.case, str_pad, str_trim, str_replace, str_replace_all, str_split_fixed, str_split, str_sub, str_sub<-
  • R
    R 2.11.0 released · 2010-04-22
  • 0.3
    record
    2010-02-15 · diff ↗
  • 0.2
    record
    2009-11-16 · diff ↗
  • 0.1.10
    record
    2009-11-09
  • R
    R 2.10.0 released · 2009-10-26

Package metadata

First published
2009-11-09
Total releases
19 / 17 yrs
License
MIT + file LICENSE OSI · relicensed from GPL-2 | file LICENSE in 1.5.0
Minimum R
≥ 4.1.0
Bundled data
15 KB / 3 files
Download size
191 KB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("stringr")
Wickham, H., & Posit Software, PBC. (2025). stringr: Simple, Consistent Wrappers for Common String Operations (Version 1.6.0) [Computer software]. https://doi.org/10.32614/CRAN.package.stringr

This package has no citation file, so citation() returns this entry built from DESCRIPTION.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for stringr version 1.6.0 [Data set]. HJJB, LLC. Data release v2026-10-17. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-17, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy