Skip to content

gsubfn

0.7

Utilities for Strings and Function Arguments

14packages depend
278.7Kdownloads / year
test coverage
11/13checks pass

Overview

About
Maintained by G. GrothendieckFirst published 2006-03-2725 releasesCRAN page ↗GitHub ↗

The gsubfn function is like gsub but can take a replacement function or certain other objects instead of the replacement string. Matches and back references are input to the replacement function and replaced by the function output. gsubfn can be used to split strings based on content rather than delimiters and for quasi-perl-style string interpolation. The package also has facilities for translating formulas to functions and allowing such formulas in function calls instead of functions. This can be used with R functions such as apply, sapply, lapply, optim, integrate, xyplot, Filter and any other function that expects another function as an input argument or functions like cat or sql calls that may involve strings where substitution is desirable. There is also a facility for returning multiple objects from functions and a version of transform that allows the RHS to refer to LHS used in the same transform.

Install

Health

CRAN checks
2NOTE11OK
Failing flavors
  • NOTE r-devel-linux-x86_64-debian-clang
  • NOTE r-devel-linux-x86_64-debian-gcc
Slowest check: 1.2 min · r-devel-windows-x86_64
Code health
None
Tests · ratio 0.00
not tracked
Coverage
100%
Documentation · exports
1
Dependencies · direct
Check history
  • NOTE2026-03-10
    12 OK · 2 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Documentation

Documentation
READMENoVignettesYes · dynamicpkgdown siteNoNEWSNoCode of conductNoContributing guideNo
Examples that run
100%
Documented parameters
not tracked
Return-value docs
0%
References docs
0%

Downloads

278.7K
CRAN downloads in the past year
Rank #806 · ~764/day · ~23.2K/mo
Daily download trend is not available in this view yet.
19.1K30 days
65.7K90 days
278.7K1 year
Compare downloads with other packages →
Also on1.7K r2u228 autocran6.2K conda_forge264 bioconda742 c2d4u

Repository

Repository
11Stars
0Forks
3Open issues
0Open PRs
0Releases
100Commits
3Contributors
License GPL-2.0 · 100 commits · Last activity 2018-03-15

Stars over time

2024-07-26 · 112026-07-07 · 11

Repository practices

Upstream repositoryBeta

Checks run against github.com/ggrothendieck/gsubfn on 2026-07-19.

No development-tooling practices detected in the upstream repository.

How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
5 external dependencies (excludes base and recommended)
Depends (1)
Imports (0)
none
LinkingTo (0)
none
Suggests (8)
bootchrongridlatticequantregsvUnittcltkzoo
Enhances (0)
none

Code & Tests

People & History

People (0)

Author records are not tracked yet for this package.

Listed in earlier versions (1)
no longer listed · 0.1-0 to 0.7
Package Timeline

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

  • 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
  • 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
  • R
    R 3.5.0 released · 2018-04-23
  • 0.7Latest
    2018-03-16 · current release · diff ↗
  • R
    R 3.4.0 released · 2017-04-21
  • R
    R 3.3.0 released · 2016-05-03
  • R
    R 3.2.0 released · 2015-04-16
  • 0.6-6
    2014-08-27 · diff ↗
  • R
    R 3.1.0 released · 2014-04-10
  • R
    R 3.0.0 released · 2013-04-03
Show 37 earlier events
  • 0.6-5
    2012-10-22 · diff ↗
  • 0.6-4
    2012-08-01 · diff ↗
  • 0.6-3
    2012-04-03 · diff ↗
  • R
    R 2.15.0 released · 2012-03-30
  • 0.6-2
    2012-03-28 · diff ↗
  • R
    R 2.14.0 released · 2011-10-31
  • 0.5-7
    2011-06-07 · diff ↗
  • R
    R 2.13.0 released · 2011-04-13
  • 0.5-5
    2010-11-18 · diff ↗
  • R
    R 2.12.0 released · 2010-10-15
  • 0.5-3
    2010-06-13 · diff ↗
  • R
    R 2.11.0 released · 2010-04-22
  • 0.5-2
    2010-03-23 · diff ↗
  • 0.5-1
    2010-03-16 · diff ↗
  • R
    R 2.10.0 released · 2009-10-26
  • 0.5-0
    2009-07-02 · diff ↗
  • R
    R 2.9.0 released · 2009-04-17
  • 0.3-8
    2008-12-15 · diff ↗
  • R
    R 2.8.0 released · 2008-10-20
  • 0.3-7
    2008-10-17 · diff ↗
  • R
    R 2.7.0 released · 2008-04-22
  • R
    R 2.6.0 released · 2007-10-03
  • R
    R 2.5.0 released · 2007-04-24
  • 0.3-3
    2006-10-28 · diff ↗
  • 0.3-1
    2006-10-23 · diff ↗
  • 0.2-2
    2006-10-15 · diff ↗
  • 0.2-1
    2006-10-10 · diff ↗
  • 0.2-0
    2006-10-06 · diff ↗
  • R
    R 2.4.0 released · 2006-10-03
  • 0.1-5
    2006-10-01 · diff ↗
  • 0.1-4
    2006-08-23 · diff ↗
  • R
    R 2.3.0 released · 2006-04-24
  • 0.1-3
    2006-04-23 · diff ↗
  • 0.1-2
    2006-04-18 · diff ↗
  • 0.1-1
    2006-04-05 · diff ↗
  • 0.1-0
    2006-03-27
  • R
    R 2.2.0 released · 2005-10-06

Package metadata

First published
2006-03-27
Total releases
25 / 20 yrs
License
GPL (>= 2) OSI
Download size
304 KB
Installed size
not tracked yet
With dependencies
not tracked yet
Appears in task views
Report a problem with this page →