Skip to content

stringr

1.6.0

Simple, Consistent Wrappers for Common String Operations

2,514packages depend
15.1Mdownloads / year
99.7%test coverage
12/13checks pass

Overview

About
Maintained by Hadley WickhamFirst published 2009-11-0919 releasesCRAN page ↗GitHub ↗

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.

Install

Health

CRAN checks
1ERROR12OK
Failing flavors
  • ERROR r-release-macos-arm64
Slowest check: 2.1 min · r-oldrel-windows-x86_64
Code health
Yes
Tests · ratio 0.54
99.7%
Coverage · measured lines
98%
Documentation · exports
7
Dependencies · direct
Check history
  • ERROR2026-04-27
    11 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • OK2026-03-10
    14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMEYes · 544 wordsVignettesYes · dynamicpkgdown siteNoNEWSYes · 100% structuredCode of conductNoContributing guideNo
Examples that run
100%
Documented parameters
93%
Return-value docs
89%
References docs
0%

Downloads

15.1M
CRAN downloads in the past year
Rank #38 · ~41.4K/day · ~1.3M/mo
Daily download trend is not available in this view yet.
1.1M30 days
3.7M90 days
15.1M1 year
Compare downloads with other packages →
Also on185.3K r2u183 autocran1.5M conda_forge319 bioconda3.4K c2d4u

Repository

Repository
666Stars
198Forks
8Open issues
6Open PRs
10Releases
679Commits
86Contributors
rstringsregular-expression
679 commits · Last activity 2025-11-04

Repository practices

Upstream repositoryBeta

10 development-tooling and community-health practices detected across 6 families in the upstream repository

Checks run against github.com/tidyverse/stringr on 2026-07-19.

Continuous integration (1)
GitHub Actions
Reproducibility and dev environment (1)
data-raw/
CRAN release process (2)
cran-comments.mdrevdep/
Docs source (1)
README.Rmd
Show all practices
Lint, format, editor (3)
AirVS CodeRStudio project
Coverage (2)
Codecov.covrignore
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
16 external dependencies (excludes base and recommended)
Depends (1)
R >= 4.1.0
LinkingTo (0)
none
Enhances (0)
none

Code & Tests

Code Composition
R 5,602 (59%)Rd 2,011 (21%)Vignettes 1,386 (15%)Markdown 486 (5%)
Code characteristics
Object systems
S310
Cyclomatic complexity
1.0 median / 23 max
Test cases
213 / 0.54 per code line

Test coverage

Line coverage

100%

Expression

99.4%

Tests / Examples

99.7% / – ex

Functions

167 62 exported

Complexity

2.2 avg / 23 max

Call network

167 nodes / 293 edges

Loading call graph…

Lowest coverage

167 functions
FunctionCycloCoverage
str_view_special389%
str_pad exp290%
str_split_i exp595%
boundary exp2100%
coll exp1100%
fixed exp1100%

Datasets

Bundled datasets · 3
NameClassRows × ColsAlso ships in
fruitvector
sentencesvector
wordsvector

People & History

People (2)
Maintainer (1)
Author, Maintainer, Copyright holder
Authors (1)
Author, Maintainer, Copyright holder
Copyright holders (2)
Author, Maintainer, Copyright holder
Copyright holder, Funder · added in 1.5.1
Funders (1)
Copyright holder, Funder · added in 1.5.1
Listed in earlier versions (1)
no longer listed · 1.0.0 to 1.5.0
Package Timeline

19 releases. Pick two to compare their code metrics. R releases are shown for context.

  • R
    R 4.6.0 released · 2026-04-24
  • 1.6.0Latest
    2025-11-04 · current release · diff ↗
  • 1.5.2
    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
    2023-11-15 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • 1.5.0
    2022-12-02 · diff ↗
  • 1.4.1
    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
    2019-02-10 · diff ↗
  • 1.3.1
    2018-05-10 · diff ↗
  • R
    R 3.5.0 released · 2018-04-23
Show 23 earlier events
  • 1.3.0
    2018-02-19 · diff ↗
  • R
    R 3.4.0 released · 2017-04-21
  • 1.2.0
    2017-02-18 · diff ↗
  • 1.1.0
    2016-08-19 · diff ↗
  • R
    R 3.3.0 released · 2016-05-03
  • 1.0.0
    2015-04-30 · diff ↗
  • 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
    2012-12-06 · diff ↗
  • 0.6.1
    2012-07-25 · diff ↗
  • R
    R 2.15.0 released · 2012-03-30
  • 0.6
    2011-12-08 · diff ↗
  • R
    R 2.14.0 released · 2011-10-31
  • 0.5
    2011-06-30 · diff ↗
  • R
    R 2.13.0 released · 2011-04-13
  • R
    R 2.12.0 released · 2010-10-15
  • 0.4
    2010-08-24 · diff ↗
  • R
    R 2.11.0 released · 2010-04-22
  • 0.3
    2010-02-15 · diff ↗
  • 0.2
    2009-11-16 · diff ↗
  • 0.1.10
    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
Minimum R
≥ 4.1.0
Bundled data
15 KB / 3 files
Download size
191 KB
Installed size
not tracked yet
With dependencies
not tracked yet
Report a problem with this page →