Various R Programming Tools
Overview
Functions to assist in R programming, including: - assist in developing, updating, and maintaining R and R packages ('ask', 'checkRVersion', 'getDependencies', 'keywords', 'scat'), - calculate the logit and inverse logit transformations ('logit', 'inv.logit'), - test if a value is missing, empty or contains only NA and NULL values ('invalid'), - manipulate R's .Last function ('addLast'), - define macros ('defmacro'), - detect odd and even integers ('odd', 'even'), - convert strings containing non-ASCII characters (like single quotes) to plain ASCII ('ASCIIfy'), - perform a binary search ('binsearch'), - sort strings containing both numeric and character components ('mixedsort'), - create a factor variable from the quantiles of a continuous variable ('quantcut'), - enumerate permutations and combinations ('combinations', 'permutation'), - calculate and convert between fold-change and log-ratio ('foldchange', 'logratio2foldchange', 'foldchange2logratio'), - calculate probabilities and generate random numbers from Dirichlet distributions ('rdirichlet', 'ddirichlet'), - apply a function over adjacent subsets of a vector ('running'), - modify the TCP_NODELAY ('de-Nagle') flag for socket objects, - efficient 'rbind' of data frames, even if the column names don't match ('smartbind'), - generate significance stars from p-values ('stars.pval'), - convert characters to/from ASCII codes ('asc', 'chr'), - convert character vector to ASCII representation ('ASCIIfy'), - apply title capitalization rules to a character vector ('capwords').
- make
checkRVersion()robust to internet failure/CRAN outages
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
- 37 (1 internal)includes a package overview page
- Examples that run
- 91%29 run in a plain check · 3 never run
- Exported functions with examples
- 94%
- Documented parameters
- 95%
- Return-value docs
- 91%
- Help pages citing references
- 14%
Downloads
Repository
- PRs merged (all time)
- 89%
- Median days to close, 50 most recently updated closed issues
- 82
- Median days to close, 50 most recently updated closed PRs
- 3
Stars over time
Forks over time
Issues over time
PRs over time
8 development-tooling and community-health practices detected across 6 families in the upstream repository
Checks run against github.com/r-gregmisc/gtools on 2026-10-11.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
GitHub Pages site last deployed 2025-07-08
Show all practicesHide 2 practices
Dependencies
Installing gtools adds no packages beyond those that come with R.
Show the 48 most downloaded dependentsHide the 48 most downloaded dependents
and 194 more dependents and 32 packages that suggest it on CRAN ↗
Code & Tests
Datasets
People & History
Previously maintained by Nitin Jain (2.0.7 to 2.2.3).
Show 8 of 20 peopleHide 8 people
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- 3.9.5Latest
- RR 4.3.0 released · 2023-04-21
- 3.9.42022-11-27 · diff ↗
- unarchivedReturned to CRAN2022-07-11
- 3.9.32022-07-11 · diff ↗
- orphanedOrphaned by its maintainer2022-06-13Includes protecting against unchecked use of CRAN and www.r-project.org
- 3.9.2.22022-06-13 · diff ↗
- 3.9.2.12022-05-23 · diff ↗
- RR 4.2.0 released · 2022-04-22
- 3.9.2
- RR 4.1.0 released · 2021-05-18
- RR 4.0.0 released · 2020-04-24
- 3.8.22020-03-31 · diff ↗
Show 50 earlier eventsHide 50 earlier events
- RR 3.6.0 released · 2019-04-26
- 3.8.1
- RR 3.5.0 released · 2018-04-23
- RR 3.4.0 released · 2017-04-21
- RR 3.3.0 released · 2016-05-03
- 3.5.02015-05-29 · diff ↗ ·
added 6 exports
asc, assignEdgewise, chr, roman2int, unByteCode, unByteCodeAssign - RR 3.2.0 released · 2015-04-16
- 3.4.2
- 3.4.12014-05-28 · diff ↗
- 3.4.0
- RR 3.1.0 released · 2014-04-10
- 3.3.12014-03-02 · diff ↗
- 3.3.0
- 3.2.12014-01-13 · diff ↗
- 3.2.0
- 3.1.12014-01-13 · diff ↗
- 3.1.02013-09-23 · diff ↗
- 3.0.0
- RR 3.0.0 released · 2013-04-03
- 2.7.12013-04-02 · diff ↗
- 2.7.02012-06-20 · diff ↗
- RR 2.15.0 released · 2012-03-30
- RR 2.14.0 released · 2011-10-31
- RR 2.13.0 released · 2011-04-13
- RR 2.12.0 released · 2010-10-15
- 2.6.22010-05-02 · diff ↗
- 2.6.1-12010-05-01 · diff ↗
- RR 2.11.0 released · 2010-04-22
- RR 2.10.0 released · 2009-10-26
- 2.6.1
- RR 2.9.0 released · 2009-04-17
- 2.5.0-12009-02-19 · diff ↗
- RR 2.8.0 released · 2008-10-20
- 2.5.0
- RR 2.7.0 released · 2008-04-22
- RR 2.6.0 released · 2007-10-03
- 2.4.0
- RR 2.5.0 released · 2007-04-24
- 2.3.12007-04-11 · diff ↗
- 2.3.0
- RR 2.4.0 released · 2006-10-03
- RR 2.3.0 released · 2006-04-24
- 2.2.32005-12-21 · diff ↗
- 2.2.2
- RR 2.2.0 released · 2005-10-06
- 2.1.1
- 2.1.0
- 2.0.9
- 2.0.72005-05-30
- RR 2.1.0 released · 2005-04-18
Package metadata
- First published
- 2005-05-30
- Total releases
- 35 / 21 yrs
- License
- GPL-2 OSI · relicensed from LGPL-2.1 in 3.5.0
- Bundled data
- 125 KB / 2 files
- Download size
- 236 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("gtools")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-18, which the citation names so these numbers can be found later. More on citing and the projects behind them.