Skip to content

gtools

3.9.5Package record

Various R Programming Tools

242packages dependsuggested by 32
3.5Mdownloads / year
22.2%test coverage
13/13flavors OK

Overview

About

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

Changes in 3.9.5
  • make checkRVersion() robust to internet failure/CRAN outages

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 2.5 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 3.9.5
READMEYes · 250 wordsVignettesNoNEWSYes · 33% structured · mentions 3.9.5Citation fileNo
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

3.5M
CRAN downloads in the past year
Rank #176 · ~9.7K/day · ~295.3K/mo
Daily download trend is not available in this view yet.
271.6K30 days
959.7K90 days
3.5M1 year
Compare downloads with other packages →
Also on50.8K r2u232 autocran340.5K conda_forge1.9K c2d4u

Repository

28Stars
6Forks
9Open issues
0Open PRs
0Releases
187Commits
8Commit identities
187 commits · Last activity 2025-07-08 · 0% stars, 30d · Default branch at 3.9.6, ahead of CRAN 3.9.5 (checked 2026-10-11)
Responsiveness
How these are sampled
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

2025-08-14 · 262026-07-07 · 28
PracticesBeta

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.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel

Docs source (2)
pkgdown

GitHub Pages site last deployed 2025-07-08

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

Dependencies

Declared dependencies
6 external dependencies (excludes base and recommended)

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

Depends (3)
methodsstatsutils
Imports (0)
none
LinkingTo (0)
none
Enhances (0)
none

Datasets

People & History

People (11)
Author, Maintainer since 2.3.0 (2006) · added in 2.0.9
Author · added in 2.0.9
Author · added in 3.9.5
Author · added in 3.9.5
Author · added in 3.9.5
Author · added in 3.9.5
Author · added in 3.0.0
Contributor · added in 3.9.5
Contributor · added in 3.9.5
Contributor · added in 3.9.5
Contributor · added in 3.9.5

Previously maintained by Nitin Jain (2.0.7 to 2.2.3).

Listed in earlier versions (20)
Show 8 of 20 peopleHide 8 people
as well as the Perl modules - "IO-stringy"
no longer listed · 2.0.7
- Spreadsheet::ParseExcel under the terms of the GNU General Public Licence .
no longer listed · 2.0.7
- Ben Bolker
no longer listed · 2.0.7
- Lodewijk Bonebakker
no longer listed · 2.0.7
- Bendix Carstensen
no longer listed · 2.0.7
- R. Gentleman
no longer listed · 2.0.7
- Kjetil Halvorsen
no longer listed · 2.0.7
- W. Huber - Nitin Jain
no longer listed · 2.0.7
Releases (35)

Pick two releases to compare their code metrics.

  • 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
  • 3.9.5Latest
    record
    2023-11-20 · current release · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • 3.9.4
    record
    2022-11-27 · diff ↗
  • unarchivedReturned to CRAN
    2022-07-11
  • 3.9.3
    record
    2022-07-11 · diff ↗
  • orphanedOrphaned by its maintainer
    2022-06-13
    Includes protecting against unchecked use of CRAN and www.r-project.org
  • 3.9.2.2
    record
    2022-06-13 · diff ↗
  • 3.9.2.1
    record
    2022-05-23 · diff ↗
  • R
    R 4.2.0 released · 2022-04-22
  • 3.9.2
    record
    2021-06-06 · diff ↗ ·
    removed 1 export
    addLast
    added 3 exports
    script_file, script_path, stat_mode
  • R
    R 4.1.0 released · 2021-05-18
  • R
    R 4.0.0 released · 2020-04-24
  • 3.8.2
    record
    2020-03-31 · diff ↗
Show 50 earlier eventsHide 50 earlier events
  • R
    R 3.6.0 released · 2019-04-26
  • 3.8.1
    record
    2018-06-26 · diff ↗ ·
    added 3 exports
    baseOf, capwords, split_path
  • R
    R 3.5.0 released · 2018-04-23
  • R
    R 3.4.0 released · 2017-04-21
  • R
    R 3.3.0 released · 2016-05-03
  • 3.5.0
    record
    2015-05-29 · diff ↗ ·
    added 6 exports
    asc, assignEdgewise, chr, roman2int, unByteCode, unByteCodeAssign
  • R
    R 3.2.0 released · 2015-04-16
  • 3.4.2
    record
    2015-04-10 · diff ↗ ·
    added 2 exports
    loadedPackages, na.replace
  • 3.4.1
    record
    2014-05-28 · diff ↗
  • 3.4.0
    record
    2014-04-18 · diff ↗ ·
    added 1 export
    ASCIIfy
  • R
    R 3.1.0 released · 2014-04-10
  • 3.3.1
    record
    2014-03-02 · diff ↗
  • 3.3.0
    record
    2014-02-11 · diff ↗ ·
    added 1 export
    getDependencies
  • 3.2.1
    record
    2014-01-13 · diff ↗
  • 3.2.0
    record
    2014-01-12 · diff ↗ ·
    added 1 export
    stars.pval
  • 3.1.1
    record
    2014-01-13 · diff ↗
  • 3.1.0
    record
    2013-09-23 · diff ↗
  • 3.0.0
    record
    2013-07-07 · diff ↗ ·
    added 1 export
    lastAdd
  • R
    R 3.0.0 released · 2013-04-03
  • 2.7.1
    record
    2013-04-02 · diff ↗
  • 2.7.0
    record
    2012-06-20 · diff ↗
  • R
    R 2.15.0 released · 2012-03-30
  • R
    R 2.14.0 released · 2011-10-31
  • R
    R 2.13.0 released · 2011-04-13
  • R
    R 2.12.0 released · 2010-10-15
  • 2.6.2
    record
    2010-05-02 · diff ↗
  • 2.6.1-1
    record
    2010-05-01 · diff ↗
  • R
    R 2.11.0 released · 2010-04-22
  • R
    R 2.10.0 released · 2009-10-26
  • 2.6.1
    record
    2009-05-10 · diff ↗ ·
    added 1 export
    keywords
  • R
    R 2.9.0 released · 2009-04-17
  • 2.5.0-1
    record
    2009-02-19 · diff ↗
  • R
    R 2.8.0 released · 2008-10-20
  • 2.5.0
    record
    2008-05-27 · diff ↗ ·
    added 1 export
    checkRVersion
  • R
    R 2.7.0 released · 2008-04-22
  • R
    R 2.6.0 released · 2007-10-03
  • 2.4.0
    record
    2007-08-09 · diff ↗ ·
    added 2 exports
    ask, binsearch
  • R
    R 2.5.0 released · 2007-04-24
  • 2.3.1
    record
    2007-04-11 · diff ↗
  • 2.3.0
    record
    2006-11-28 · diff ↗ ·
    added 3 exports
    capture, smartbind, sprint
  • R
    R 2.4.0 released · 2006-10-03
  • R
    R 2.3.0 released · 2006-04-24
  • 2.2.3
    record
    2005-12-21 · diff ↗
  • 2.2.2
    record
    2005-12-14 · diff ↗ ·
    added 2 exports
    addLast, setTCPNoDelay
  • R
    R 2.2.0 released · 2005-10-06
  • 2.1.1
    record
    2005-09-23 · diff ↗ ·
    added 1 export
    strmacro
  • 2.1.0
    record
    2005-09-03 · diff ↗ ·
    added 1 export
    assert
  • 2.0.9
    record
    2005-09-02 · diff ↗ ·
    added 1 export
    defmacro
  • 2.0.7
    record
    2005-05-30
  • R
    R 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")
Bolker, B., Chamberlain, S., Davis, M., Jain, N., Lumley, T., Magnusson, A., Moeller, S., Ryodan, G., Venables, B., Warnes, G. R., & Wilson, I. (2023). gtools: Various R Programming Tools (Version 3.9.5) [Computer software]. https://doi.org/10.32614/CRAN.package.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.

APA

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

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.

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