Miscellaneous R Functions and Aliases
Overview
Provides utility functions for, and drawing on, the 'data.table' package. The package also collates useful miscellaneous functions extending base R not available elsewhere. The name is a portmanteau of 'utils' and the author.
dplyr::if_elseis no longer slower thanif_else.
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
- 53includes a package overview page
- Examples that run
- 93%27 run in a plain check (2 of them under a condition) · 2 never run
- Exported functions with examples
- 57%
- Documented parameters
- 80%
- Return-value docs
- 76%
- Help pages citing references
- 0%
- hutils HTML
Downloads
Repository
- PRs merged (all time)
- 100%
- Median days to close, 50 most recently updated closed issues
- 3
- Median days to close, 50 most recently updated closed PRs
- 0
9 development-tooling and community-health practices detected across 5 families in the upstream repository
Checks run against github.com/hughparsonage/hutils on 2026-10-21.
Show all practicesHide 1 practice
Dependencies
Installing hutils adds 3 packages (3 with compiled code, 6.0 MB of source tarballs). Heaviest: data.table 5.7 MB, magrittr 275 KB, fastmatch 18 KB.
Code & Tests
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- 2.0.0Latest
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- RR 4.2.0 released · 2022-04-22
- 1.8.1
- 1.7.12021-07-22 · diff ↗
- RR 4.1.0 released · 2021-05-18
- 1.6.02020-11-16 · diff ↗ ·
added 8 exports
bearing, compass2bearing, easterly_component, goto_pattern_in, northerly_component, prohibit_unequal_length_vectors, prohibit_vector_recycling, prohibit_vector_recycling.MAXLENGTH - RR 4.0.0 released · 2020-04-24
- 1.5.12019-10-05 · diff ↗
- 1.5.0
- RR 3.6.0 released · 2019-04-26
- 1.4.02019-03-09 · diff ↗ ·
added 7 exports
%<->%, Mode, average_bearing, average_bearing_n, dir2, replace_pattern_in, samp - 1.3.02018-11-01 · diff ↗ ·
added 6 exports
longest_prefix, longest_suffix, mutate_ntile, trim_common_affixes, weighted_ntile, weighted_quantile
Show 9 earlier eventsHide 9 earlier events
- 1.2.02018-08-20 · diff ↗ ·
added 10 exports
RQ, Switch, XOR, ahull, all_same_sign, any_grepl, drop_grep, isAttached, mean_na, selector - 1.1.0
- RR 3.5.0 released · 2018-04-23
- 1.0.0
- 0.10.02018-01-24 · diff ↗ ·
added 7 exports
%implies%, drop_constant_cols, generate_LaTeX_manual, implies, pow, print_transpose_data.table, report_error - 0.9.0
- 0.8.02017-09-12 · diff ↗ ·
added 15 exports
%ein%, %enotin%, AND, NEITHER, NOR, OR, coalesce, drop_colr, if_else, neither, ngrep, nor, select_which, set_colsuborder, weight2rows - 0.1.22017-07-09
- RR 3.4.0 released · 2017-04-21
Package metadata
- First published
- 2017-07-09
- Total releases
- 15 / 9 yrs
- License
- GPL-3 OSI
- Minimum R
- ≥ 3.3.0
- Download size
- 123 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("hutils")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-23, which the citation names so these numbers can be found later. More on citing and the projects behind them.