Skip to content

strex

2.1.0Package record

Extra String Manipulation Functions

8packages depend
23Kdownloads / year
98.7%test coverage
13/13flavors OK

Overview

About

There are some things that I wish were easier with the 'stringr' or 'stringi' packages. The foremost of these is the extraction of numbers from strings. 'stringr' and 'stringi' make you figure out the regular expression for yourself; 'strex' takes care of this for you. There are many other handy functionalities in 'strex'. Contributions to this package are encouraged; it is intended as a miscellany of string manipulation functions that cannot be found in 'stringi' or 'stringr'.

Changes in 2.1.0

BUG FIXES

  • Numeric extraction functions (e.g. str_extract_numbers(), str_nth_number(), str_nth_number_before_mth(), str_nth_number_after_mth(), str_extract_non_numerics(), str_nth_non_numeric(), str_split_by_numbers()) no longer error on NA input or on strings with no matching number; they now correctly return NA (#11).

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 5.3 min · r-devel-windows-x86_64
Status changes
  • OK13 OK2026-08-04
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK13 OK2026-06-09
  • ERROR12 OK, 1 ERROR2026-06-08
  • WARNING12 OK, 1 WARNING2026-06-07
Show 1 earlier changeHide 1 earlier change
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 2.1.0
README· In the repository, left out of the releaseVignettesYes · 6 · dynamicNEWSYes · 100% structured · mentions 2.1.0Citation fileNoWebsiteYes · pkgdown
Help pages
26includes a package overview page
Examples that run
100%25 run in a plain check
Exported functions with examples
100%
Documented parameters
99%
Return-value docs
88%
Help pages citing references
8%

Downloads

23K
CRAN downloads in the past year
Rank #2,823 · ~63/day · ~1.9K/mo
Daily download trend is not available in this view yet.
1.7K30 days
5.3K90 days
23K1 year
Compare downloads with other packages →
Also on667 r2u8 autocran7.7K conda_forge

Repository

40Stars
4Forks
0Open issues
0Open PRs
13Releases
138Commits
4Commit identities
License file reads as GPL-3.0 · 138 commits · Last activity 2026-07-05
Responsiveness
How these are sampled
PRs merged (all time)
100%
Median days to close, 50 most recently updated closed issues
7
Median days to close, 50 most recently updated closed PRs
0
PracticesBeta

13 development-tooling and community-health practices detected across 8 families in the upstream repository

Checks run against github.com/rorynolan/strex on 2026-10-21.

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)
Contributing guide
Docs source (4)
README.Rmdpkgdown

GitHub Pages site last deployed 2026-07-05 · The repository has a site deploy workflow

Coverage (2)
Coverage reporting (Codecov).covrignore
Show all practicesHide 4 practices
CRAN release process (1)
cran-comments.md
Research and citation (1)
codemeta.json
Automation and maintenance (1)
pre-commit
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v4 (2026-10-20)
AI coding toolsBeta

This repository shows signs of AI coding tools.

  • Claude Codefirst seen 2026-07-03
    Named in .Rbuildignore: .claude
    Commits: at least 2 crediting it in the message
Models named in its commits
  • Claude Sonnet 52 commits · Jul 2026
Counts are commits, not lines of code. Commits by a tool's accounts count once across all of its accounts. Commits crediting it are the largest count among its credit lines, a minimum.How this is detected·Detection ruleset v4 (updated 2026-09-27)

Dependencies

Declared dependencies
13 external dependencies (excludes base and recommended)

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

Depends (2)
R >= 3.5stringr
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
8direct
8indirect
Imports 8
Depends, Imports or LinkingTo, most downloaded first

People & History

People (1)
Author, Maintainer since 0.1.0 (2018)
Releases (25)

Pick two releases to compare their code metrics.

Show 18 earlier eventsHide 18 earlier events

Package metadata

First published
2018-09-01
Total releases
25 / 8 yrs
License
GPL-3 OSI
Minimum R
≥ 3.5
Download size
142 KB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("strex")
Nolan, R. (2026). strex: Extra String Manipulation Functions (Version 2.1.0) [Computer software]. https://doi.org/10.32614/CRAN.package.strex

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 strex version 2.1.0 [Data set]. HJJB, LLC. Data release v2026-10-25. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-25, 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