Safe, Multiple, Simultaneous String Substitution
Overview
Designed to enable simultaneous substitution in strings in a safe fashion. Safe means it does not rely on placeholders (which can cause errors in same length matches).
- Rewrote key functions in C to provide significant performance boost (4-5x speedup in certain tests)
get_matchesandfilter_overlapare the primary performance enhancersget_matches_baseandfilter_overlap_baseretain the original base R functionality in case of issues with building the code- Changed maintainer email address because current one was bouncing CRAN emails
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK14 OK2026-03-10
Documentation
- Help pages
- 10 (1 internal)includes a package overview page
- Examples that run
- 100%2 run in a plain check
- Exported functions with examples
- 100%
- Documented parameters
- 92%
- Return-value docs
- 100%
- Help pages citing references
- 0%
Downloads
Repository
- PRs merged (all time)
- 93%
- Median days to close, 50 most recently updated closed issues
- 20
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
9 development-tooling and community-health practices detected across 6 families in the upstream repository
Checks run against github.com/bmewing/mgsub on 2026-10-18.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
GitHub Pages site last deployed 2026-05-06 · The repository has a site deploy workflow
pkgdown site last built 2026-05-06
Show all practicesHide 2 practices
Dependencies
Installing mgsub adds no packages beyond those that come with R.
Code & Tests
People & History
Pick two releases to compare their code metrics.
- 2.0.0Latest
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- RR 4.2.0 released · 2022-04-22
- 1.7.32021-07-28 · diff ↗
- RR 4.1.0 released · 2021-05-18
- 1.7.22020-07-22 · diff ↗
- RR 4.0.0 released · 2020-04-24
- RR 3.6.0 released · 2019-04-26
- 1.7.12019-03-13 · diff ↗
- 1.7.0
- RR 3.5.0 released · 2018-04-23
- 1.5.0
- 1.0.02018-01-25
Show 1 earlier eventHide 1 earlier event
- RR 3.4.0 released · 2017-04-21
Package metadata
- First published
- 2018-01-25
- Total releases
- 7 / 8 yrs
- License
- MIT + file LICENSE OSI
- Download size
- 26 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("mgsub")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.
From data release v2026-10-22, which the citation names so these numbers can be found later. More on citing and the projects behind them.