Skip to content

mgsub

2.0.0Package record

Safe, Multiple, Simultaneous String Substitution

5packages dependsuggested by 2
87.3Kdownloads / year
100.0%test coverage
13/13flavors OK

Overview

About

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).

Changes in 2.0.0
  • Rewrote key functions in C to provide significant performance boost (4-5x speedup in certain tests)
  • get_matches and filter_overlap are the primary performance enhancers
  • get_matches_base and filter_overlap_base retain 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

CRAN checks
13OK
Slowest check: 2.3 min · r-devel-windows-x86_64
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 2.0.0
READMEYes · 199 wordsVignettesYes · 2 · dynamicNEWSYes · 100% structured · mentions 2.0.0Citation fileNoWebsiteYes · pkgdown
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

87.3K
CRAN downloads in the past year
Rank #1,525 · ~239/day · ~7.3K/mo
Daily download trend is not available in this view yet.
6.1K30 days
15.8K90 days
87.3K1 year
Compare downloads with other packages →
Also on1.6K r2u4 autocran3.3K conda_forge88 c2d4u

Repository

15Stars
3Forks
0Open issues
0Open PRs
7Releases
93Commits
3Commit identities
rsafetystringsstrings-manipulationsubstitutions
93 commits · Last activity 2026-05-06 · 0% stars, 30d
Responsiveness
How these are sampled
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

2025-10-02 · 152026-07-07 · 15
PracticesBeta

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.

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 (3)
pkgdown

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

pkgdown site last built 2026-05-06

Coverage (1)
Coverage reporting
Show all practicesHide 2 practices
CRAN release process (1)
cran-comments.md
Lint, format, editor (1)
lintr
How this is detected·Detection ruleset v3 (2026-09-26)

Dependencies

Declared dependencies
3 external dependencies (excludes base and recommended)

Installing mgsub adds no packages beyond those that come with R.

Depends (0)
none
Imports (0)
none
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
5direct
18indirect
Imports 5
Suggested by 2
Depends, Imports or LinkingTo, most downloaded first
Suggests, most downloaded first

People & History

People (1)
Author, Maintainer since 1.0.0 (2018)
Releases (7)

Pick two releases to compare their code metrics.

  • 2.0.0Latest
    record
    2026-05-06 · current release · diff ↗
  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • R
    R 4.3.0 released · 2023-04-21
  • R
    R 4.2.0 released · 2022-04-22
  • 1.7.3
    record
    2021-07-28 · diff ↗
  • R
    R 4.1.0 released · 2021-05-18
  • 1.7.2
    record
    2020-07-22 · diff ↗
  • R
    R 4.0.0 released · 2020-04-24
  • R
    R 3.6.0 released · 2019-04-26
  • 1.7.1
    record
    2019-03-13 · diff ↗
  • 1.7.0
    record
    2019-01-13 · diff ↗ ·
    removed 1 export
    mgsub_dict
    added 1 export
    mgsub_censor
  • R
    R 3.5.0 released · 2018-04-23
  • 1.5.0
    record
    2018-03-08 · diff ↗ ·
    removed 1 export
    pattern:^[[:alpha:]]+
    added 2 exports
    mgsub, mgsub_dict
  • 1.0.0
    record
    2018-01-25
Show 1 earlier eventHide 1 earlier event
  • R
    R 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")
Ewing, M. (2026). mgsub: Safe, Multiple, Simultaneous String Substitution (Version 2.0.0) [Computer software]. https://doi.org/10.32614/CRAN.package.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.

APA

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

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.

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