gsubfn
‹0.7
- 0.716 Mar 2018, current
- 0.6-627 Aug 2014
- 0.6-522 Oct 2012
- 0.6-41 Aug 2012
- 0.6-33 Apr 2012
- 0.6-228 Mar 2012
- 0.5-77 Jun 2011
- 0.5-518 Nov 2010
- 0.5-313 Jun 2010
- 0.5-223 Mar 2010
- 0.5-116 Mar 2010
- 0.5-02 Jul 2009
- 0.3-815 Dec 2008
- 0.3-717 Oct 2008
- 0.3-328 Oct 2006
- 0.3-123 Oct 2006
- 0.2-215 Oct 2006
- 0.2-110 Oct 2006
- 0.2-06 Oct 2006
- 0.1-51 Oct 2006
- 0.1-423 Aug 2006
- 0.1-323 Apr 2006
- 0.1-218 Apr 2006
- 0.1-15 Apr 2006
- 0.1-027 Mar 2006
Utilities for Strings and Function Arguments
- CRAN checks, method
Method
Checks and health
CRAN runs every current package through
R CMD checkon a set of machines and publishes a result for each one. The health shown on a package page comes from these results alone.- Problems
- Notes alone never count against a package, but a warning, an error or a failure on any platform is a problem. Open CRAN deadlines are a fact of their own, shown as a clock after the mark, so the mark always says what the checks found.
- Checks only
- Health reflects CRAN's check results and nothing else. Even a package with no tests, no coverage or no recent release can have every platform OK.
- Once a day
- Results are collected once a day from files CRAN publishes. Each platform is one machine set-up, named by its R version, operating system, architecture and compiler, such as r-devel-linux-x86_64-fedora-clang.
- Platforms counted
- The 13 in 3 of 13 is the number of platform rows CRAN published for that package on the day of collection. The set of machines changes over time, so the number is not fixed, and a package missing from a platform counts as neither passing nor failing there.
- OKnotes on 2 of 13
- CRAN 30-day downloads, method
- 17,663−2.7% down on the 30 days before, the worse direction
- Dependent packages, method
Method
Reverse dependencies
Dependent packages are other packages that list this one under
Depends,ImportsorLinkingToin theirDESCRIPTIONfile. Those fields list the packages a package needs to install, so dependents break if this one is archived or broken.- As declared
- The counts follow the declarations as written, not whether a package uses the other one when it runs.
- Suggests apart
- Packages that list this one only under
Suggestsinstall and run without it, and use it for tests, examples or an optional feature. They are counted as Suggested by, never among the dependents, and a package that also lists it under one of the three fields is a dependent and is not counted again. - Zero
- Zero dependents means no current CRAN package declares a need for this one, though some may suggest it. On 29 Oct 2026, 19,585 of the 25,593 current CRAN packages had no dependent package.
- 95 more suggest it
- Test coverage, method
Method
Test coverage
Test coverage is measured by downloading each CRAN package's current source file, installing its dependencies, building it and running its tests under covr.
- Almost half of CRAN has no tests to run
- Only CRAN packages are measured. Many have no percentage, most often because the package has no tests, and that blank is a recorded outcome, not missing data.
- NOT_CRAN
- Tests run with NOT_CRAN=true, so tests that skip themselves on CRAN run here, and the figure can differ from what CRAN's own checks see.
- Current version only
- Only the current version is measured, and a new version on CRAN is measured again. Older rows are kept but never filled in later. This is one package's run.
- Never 0%
- On a package page three states stay apart: measured, no tests, and not measured. Neither of the last two is ever shown as 0%.
- No testsnothing to run
- Advisories, method
Method
Security advisories
Advisories come from the R Consortium advisory database, a community record of security problems in R packages, as OSV publishes it.
- The copy
- The record is read once a day. The data is published under the Apache License 2.0 and is credited on the advisories list.
- Box under the name
- Under the package's name, a box names any advisory that affects the current release, with its fix or that there is none.
- Ranges
- Advisories state ranges, such as from 0.9.12 up to but not including 1.8.8. Each range is checked against every version CRAN has published, using the version rules R itself uses, so a release that came out after the advisory was written is still caught by its range.
- Not the package
- The rating is for the library flaw itself, not for how exposed the R package is, and it is never added up into a figure for the package.
- None known
About
Method, About Method Licence figures come from the Licences
License field of each package's DESCRIPTION file, read the way R itself reads it. No licence file is opened.tools::analyze_license() and R's own licence database, as CRAN's checks read it.| is read, so one string can offer two families.
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.
Full description
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.
- Maintainer
- G. Grothendieck
- Licence
- GPL (>= 2)
- Latest release
- 16 Mar 2018
- First release
- 27 Mar 2006
More details
- Releases
- 25
- Needs compilation
- No
- Date
- 2018-03-15
Task views (1)
Subjects (1) Method, SubjectsMethod
Subjects and collections
Subjects are the site's own grouping of CRAN packages, found by clustering. Collections are sets of packages that communities declare, such as the tidyverse.
- Subjects
- Subjects are found by clustering the words of current CRAN packages and the packages they use. No one edits them by hand.
- Collections
- Collections are sets that communities declare, through a package that installs the set or an organization on GitHub. The site finds them by rules.
- Who made each
- Subjects are marked Site and collections Community. Subjects, collections and task views are never mixed in one list.
- The day of the data
- Subjects and collections were last worked out on 22 Oct 2026.
Cite
Package
Run in R for the authors' preferred citation:
citation("gsubfn")R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
Balamuta, J. J. (2026). R Observatory: Metrics for gsubfn version 0.7 [Data set]. HJJB, LLC. Data release v2026-10-29. https://doi.org/10.5281/zenodo.21843040
About
From data release v2026-10-29, which the citation names so these numbers can be found later.
Health
No warnings or errors. 2 of 13 check platforms have notes.
r-devel-linux-x86_64-debian-clangThe unreleased R on Linux, x86_64, debian-clang
Note
- Version checked
- 0.7
- Time taken
- 39 s
CRAN incoming feasibility: Note
Maintainer: ‘G. Grothendieck <ggrothendieck@gmail.com>’
r-devel-linux-x86_64-debian-gccThe unreleased R on Linux, x86_64, debian-gcc
Note
- Version checked
- 0.7
- Time taken
- 36 s
CRAN incoming feasibility: Note
Maintainer: ‘G. Grothendieck <ggrothendieck@gmail.com>’
r-devel-linux-x86_64-fedora-clangThe unreleased R on Linux, x86_64, fedora-clang
OK
- Version checked
- 0.7
- Time taken
- 29 s
r-devel-linux-x86_64-fedora-gccThe unreleased R on Linux, x86_64, fedora-gcc
OK
- Version checked
- 0.7
- Time taken
- 33 s
r-devel-windows-x86_64The unreleased R on Windows, x86_64
OK
- Version checked
- 0.7
- Time taken
- 76 s
r-oldrel-macos-arm64The previous release of R on macOS, arm64
OK
- Version checked
- 0.7
r-oldrel-macos-x86_64The previous release of R on macOS, x86_64
OK
- Version checked
- 0.7
- Time taken
- 61 s
r-oldrel-windows-x86_64The previous release of R on Windows, x86_64
OK
- Version checked
- 0.7
- Time taken
- 75 s
r-patched-linux-x86_64The patched release of R on Linux, x86_64
OK
- Version checked
- 0.7
- Time taken
- 34 s
r-release-linux-x86_64The current release of R on Linux, x86_64
OK
- Version checked
- 0.7
- Time taken
- 34 s
r-release-macos-arm64The current release of R on macOS, arm64
OK
- Version checked
- 0.7
- Time taken
- 18 s
r-release-macos-x86_64The current release of R on macOS, x86_64
OK
- Version checked
- 0.7
- Time taken
- 59 s
r-release-windows-x86_64The current release of R on Windows, x86_64
OK
- Version checked
- 0.7
- Time taken
- 76 s
- 2 Note
- 11 OK
Check output (1)
CRAN incoming feasibility, Note on 2 platforms
Maintainer: ‘G. Grothendieck <ggrothendieck@gmail.com>’
No Authors@R field in DESCRIPTION.
Please add one, modifying
Authors@R: person(given = "G.",
family = "Grothendieck",
role = c("aut", "cre"),
email = "ggrothendieck@gmail.com")
as necessary.Downloads
Method, Downloads Method Download figures count requests logged by each distribution channel. They are not counts of installs or of users, because each channel publishes its own totals and this site reads them.Downloads
- Total downloads in the last 30 days
- 19,566+1.5% up on the 30 days before, the better directionIt is the sum of 6 channels: CRAN, r2u, autoCRAN, conda-forge, Bioconda and c2d4u.
CRAN rank
834 of 26,553
CRAN
17,663 downloads in the last 30 days
- Rank
- 834 of 26,553
- Change
- −2.7% down on the 30 days before, the worse direction
It is in the total. Take it out
r2u
695 downloads in the last 30 days
- Rank
- 992 of 30,526
- Change
- +130% up on the 30 days before, the better direction
It is in the total. Take it out
autoCRAN
191 downloads in the last 30 days
- Rank
- 275 of 29,233
- Change
- −6.4% down on the 30 days before, the worse direction
It is in the total. Take it out
conda-forge
976 downloads in the last 30 days
- Rank
- 1,030 of 3,828
- Change
- +66% up on the 30 days before, the better direction
It is in the total. Take it out
Bioconda
19 downloads in the last 30 days
- Rank
- 4,235 of 4,976
- Change
- −5% down on the 30 days before, the worse direction
It is in the total. Take it out
c2d4u, no longer updated
22 downloads in the last 30 days
- Rank
- 823 of 7,575
- Change
- +69.2% up on the 30 days before, the better direction
It is in the total. Take it out
The total is 19,566 downloads in the last 30 days. It is the sum of 6 channels: CRAN, r2u, autoCRAN, conda-forge, Bioconda and c2d4u.
Over time
Dependencies
- Needs
- 1
- Dependent packages
- 9
- Suggested by
- 5
Needs (1)
- Installing it adds
- 1 package, 529 KB of source
- Of those, need compilation
- 0
Dependent packages (9)
| Package | Title | Downloads in 30 days |
|---|---|---|
| sqldf | Manipulate R Data Frames Using SQL | 15,963 |
| MplusAutomation | An R Package for Facilitating Large-Scale Latent Variable Analyses in Mplus | 6,345 |
| smbinning | Scoring Modeling and Optimal Binning | 1,506 |
| dartR | Importing and Analysing 'SNP' and 'Silicodart' Data Generated by Genome-Wide Restriction Fragment Analysis | 973 |
| priceR | Economics and Pricing Tools | 711 |
| nflseedR | Functions to Efficiently Simulate and Evaluate NFL Seasons | 598 |
| kanjistat | A Statistical Framework for the Analysis of Japanese Kanji Characters | 402 |
| SpecHelpers | Spectroscopy Related Utilities | 274 |
| vietnameseConverter | Convert Vietnamese Encodings | 252 |
Code
Method, Code Method Code metrics come from reading the released source of each package version. The package is never installed, loaded or run.Code metrics
README, vignettes, a NEWS file and the shares read from its help pages. Files kept only in the repository, such as a pkgdown configuration or CI files, are read by the repository scan instead.
- Functions
- 15
- Public exports
- 12
- Lines of R code
- 602
- Median complexity
- 4
Functions (15)
Size and composition
Lines by kind (2,174)
| Kind | Lines | Share |
|---|---|---|
| R code | 602 | 28% |
| Documentation | 746 | 34% |
| Guides | 826 | 38% |
Lines by language
| Language | Lines | Share |
|---|---|---|
| Vignettes | 826 | 38% |
| Rd | 746 | 34% |
| R | 602 | 28% |
Languages are counted from file extensions.
- Files
- 39
- R functions
- 15
- Object systems
- S3: 3 methods
Complexity
- Median
- 4
- Mean
- 9.07
- Highest
- 36
- Median lines per function
- 21
About complexity
Cyclomatic complexity counts the independent paths through a function: 1 is a straight line, higher is harder to test. R functions only.
Call graph figures
- R functions
- 15
- Calls
- 13
- Unconnected
- 4
- Groups
- 1
Growth (25 releases)
Release changes
Tests
The package was built and has no tests to run.
- Test cases
- 1
- Lines of tests
- 0
- Exports named in tests
- 0%
Test suite
- Has tests
- No
- Test frameworks
- RUnit, svUnit
- Test cases
- 1
- Test lines per line of code
- 0
Documentation
- Exports documented
- 100%
- Return value documented
- 0%
- Help pages with examples
- 100%
- Examples run in checks
- 100%
Other documentation
- README
- No
- Release notes file
- Yes
- Help pages
- 9
- Lines of documentation
- 746
People
Method, People Method People on the site are the names packages give them in their Author and maintainer identity
DESCRIPTION files: authors from the author list, and the maintainer from the Maintainer field. Spellings of one name become one person only where the rules below allow it, and when in doubt the rules keep people apart.
Maintainer since 0.1-0 (2006)
Repository
Method, figures by host Method Repository signals are the figures read from the source repository a package links to: stars, forks, issues, commits, releases and the time issues take to close. They are read from GitHub, GitLab, Codeberg and Bitbucket.Repository signals
URL and BugReports fields of its DESCRIPTION file. Read-only mirrors, the cran and bioc accounts on GitHub and git.bioconductor.org, are left out.
ggrothendieck / gsubfn on github.com
- Stars
- 11
- Forks
- 0
- Open issues
- 3
- Last commit
- 15 Mar 2018
Activity
- Commits
- 100
- Open pull requests
- 0
- Tagged releases
- 0
- Latest tagged release
- –
- Issues closed in
- 2 days (median)
- Pull requests closed in
- –
- Pull requests merged
- –
- Created
- 26 May 2015
- Licence file reads as
- GPL-2.0
History
Method, History Method Archived is built from CRAN's archive records, its list of check deadlines and Bioconductor's package records. Every figure is counted to 29 Oct 2026, the day the data was read.Packages leaving
- On CRAN
- Release
| Version | Released | R |
|---|---|---|
| 0.7 current | 16 Mar 2018 | 3.4.4 |
| 0.6-6 | 27 Aug 2014 | 3.1.1 |
| 0.6-5 | 22 Oct 2012 | 2.15.1 |
| 0.6-4 | 1 Aug 2012 | 2.15.1 |
| 0.6-3 | 3 Apr 2012 | 2.15.0 |
| 0.6-2 | 28 Mar 2012 | 2.14.2 |
| 0.5-7 | 7 Jun 2011 | 2.13.0 |
| 0.5-5 | 18 Nov 2010 | 2.12.0 |
Earlier versions (17)
| Version | Released | R |
|---|---|---|
| 0.5-3 | 13 Jun 2010 | 2.11.1 |
| 0.5-2 | 23 Mar 2010 | 2.10.1 |
| 0.5-1 | 16 Mar 2010 | 2.10.1 |
| 0.5-0 | 2 Jul 2009 | 2.9.1 |
| 0.3-8 | 15 Dec 2008 | 2.8.0 |
| 0.3-7 | 17 Oct 2008 | 2.7.2 |
| 0.3-3 | 28 Oct 2006 | 2.4.0 |
| 0.3-1 | 23 Oct 2006 | 2.4.0 |
| 0.2-2 | 15 Oct 2006 | 2.4.0 |
| 0.2-1 | 10 Oct 2006 | 2.4.0 |
| 0.2-0 | 6 Oct 2006 | 2.4.0 |
| 0.1-5 | 1 Oct 2006 | 2.3.1 |
| 0.1-4 | 23 Aug 2006 | 2.3.1 |
| 0.1-3 | 23 Apr 2006 | 2.2.1 |
| 0.1-2 | 18 Apr 2006 | 2.2.1 |
| 0.1-1 | 5 Apr 2006 | 2.2.1 |
| 0.1-0 | 27 Mar 2006 | 2.2.1 |