Skip to content

One Rule Machine Learning Classification Algorithm with Enhancements

2packages depend
11.5Kdownloads / year
–test coverage
11/13flavors OK

Overview

About

Implements the One Rule (OneR) Machine Learning classification algorithm (Holte, R.C. (1993) doi:10.1023/A:1022631118932) with enhancements for sophisticated handling of numeric data and missing values together with extensive diagnostic functions. It is useful as a baseline for machine learning models and the rules are often helpful heuristics.

Changes in 2.2

MAJOR IMPORVEMENTS

  • OneR: massive speedup of main OneR function (> 30 times faster).
  • OneR & optbin: standard S3 method interface added for formulas and data frames.

MINOR IMPROVEMENTS

  • optbin: speedup of method "infogain".
  • Some minor corrections in documentation.

From NEWS in the release

Install

Health

CRAN checks
2NOTE11OK
Check messages
NOTECRAN incoming feasibilityr-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc
Maintainer: ‘Holger von Jouanne-Diedrich <holger.jouanne-diedrich@h-ab.de>’

No Authors@R field in DESCRIPTION.
Please add one, modifying
  Authors@R: person(given = "Holger",
                    family = "von Jouanne-Diedrich",
                    role = c("aut", "cre"),
                    email = "holger.jouanne-diedrich@h-ab.de")
as necessary.

CRAN check page ↗

Slowest check: 1.1 min · r-devel-windows-x86_64
Status changes
  • NOTE11 OK, 2 NOTENow
  • NOTE12 OK, 2 NOTE2026-03-10
Advisories

none known

Documentation

In release 2.2
READMEYes · 128 wordsVignettesYes · 1 · dynamicNEWSYes · 33% structured · mentions 2.2Citation fileNo
Help pages
11
Examples that run
100%11 run in a plain check
Exported functions with examples
100%
Documented parameters
97%
Return-value docs
100%
Help pages citing references
100%

Downloads

11.5K
CRAN downloads in the past year
Rank #4,106 · ~32/day · ~961/mo
Daily download trend is not available in this view yet.
75930 days
2.2K90 days
11.5K1 year
Compare downloads with other packages →
Also on151 r2u3 autocran713 conda_forge169 c2d4u

Repository

41Stars
3Forks
1Open issues
0Open PRs
0Releases
148Commits
2Commit identities
148 commits · Last activity 2018-06-04
Responsiveness
How these are sampled
PRs merged (all time)
0%
Median days to close, 50 most recently updated closed issues
2
Median days to close, 50 most recently updated closed PRs
1

Stars over time

2025-04-03 · 412026-07-07 · 41
PracticesBeta

2 development-tooling and community-health practices detected across 2 families in the upstream repository

Checks run against github.com/vonjd/oner on 2026-10-18.

Docs source (1)

GitHub Pages site last deployed 2016-08-15

Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v3 (2026-09-26)

Dependencies

Declared dependencies
2 external dependencies (excludes base and recommended)

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

Depends (1)
R >= 2.10
Imports (0)
none
LinkingTo (0)
none
Suggests (2)
Enhances (0)
none
Reverse dependencies
2direct
1indirect
Imports 2
Depends, Imports or LinkingTo, most downloaded first

Datasets

People & History

People (from the free-text Author field) (1)

Maintainer since 1.2 (2016)

Releases (5)

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
  • 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
  • 2.2Latest
    record
    2017-05-05 · current release · diff ↗
  • R
    R 3.4.0 released · 2017-04-21
  • 2.1
    record
    2016-10-24 · diff ↗
  • 2.0
    record
    2016-08-12 · diff ↗
  • 1.3
    record
    2016-07-22 · diff ↗
  • 1.2
    record
    2016-06-20
  • R
    R 3.3.0 released · 2016-05-03

Package metadata

First published
2016-06-20
Total releases
5 / 10 yrs
License
MIT + file LICENSE OSI
Minimum R
≥ 2.10
Bundled data
2.9 KB / 1 file
Download size
50 KB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("OneR")

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 OneR version 2.2 [Data set]. HJJB, LLC. Data release v2026-10-21. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-21, 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