Skip to content

CaseBasedReasoning

0.4.1Package record

Case Based Reasoning

0packages depend
3.1Kdownloads / year
80.1%test coverage
13/13flavors OK

Overview

About

Case-based reasoning is a problem-solving methodology that involves solving a new problem by referring to the solution of a similar problem in a large set of previously solved problems. The key aspect of Case Based Reasoning is to determine the problem that "most closely" matches the new problem at hand. This is achieved by defining a family of distance functions and using these distance functions as parameters for local averaging regression estimates of the final result. The optimal distance function is chosen based on a specific error measure used in regression estimation. This approach allows for efficient problem-solving by leveraging past experiences and adapting solutions from similar cases. The underlying concept is inspired by the work of Dippon J. et al. (2002) doi:10.1016/S0167-9473(02)00058-0.

Changes in 0.4.1

Breaking changes

  • Redesigned API: snake_case function names (distance_random_forest, weighted_distance, terminal_nodes, as_dist_object). Old camelCase names still work but emit deprecation warnings.
  • R6 field names changed to snake_case (endpoint, dist_matrix, order_matrix). Old names emit deprecation warnings.
  • S3 generics added: predict(), print(), summary() for all model classes.

Bug fixes

  • Fix off-by-one error in terminal node IDs for RF depth distance.
  • Fix compilation on musl/Alpine Linux (no TBB fallback).
  • Fix platform-dependent test failure in ordering tests.
  • Replace broken URLs with stable DOI links.
Show all changes in 0.4.1Hide the rest of the changes in 0.4.1

Improvements

  • Improved vignettes: added set.seed() for reproducibility, tightened prose.
  • Removed archived pryr dependency; replaced with base do.call.
  • Removed data.table dependency.
  • Added CI/CD via GitHub Actions (macOS, Windows, Ubuntu).

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 5.4 min · r-devel-windows-x86_64
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK13 OK2026-06-09
  • ERROR12 OK, 1 ERROR2026-06-08
  • OK12 OK2026-04-25
Show 3 earlier changesHide 3 earlier changes
  • NOTE11 OK, 3 NOTE2026-04-22
  • ERROR10 OK, 3 NOTE, 1 ERROR2026-04-18
  • NOTE11 OK, 3 NOTE2026-03-10
Advisories

none known

Documentation

In release 0.4.1
README· In the repository, left out of the releaseVignettesYes · 2 · dynamicNEWSYes · 67% structured · mentions 0.4.1Citation fileNoWebsitenot declared in DESCRIPTION
Help pages
28 (1 internal)includes a package overview page
Examples that run
14%1 run in a plain check · 6 only when donttest examples are enabled (R CMD check --as-cran)
Exported functions with examples
54%
Documented parameters
100%
Return-value docs
54%
Help pages citing references
4%

Downloads

3.1K
CRAN downloads in the past year
Rank #11,156 · ~8/day · ~256/mo
Daily download trend is not available in this view yet.
44730 days
93690 days
3.1K1 year
Compare downloads with other packages →
Also on411 r2u6 autocran

Repository

2Stars
2Forks
0Open issues
0Open PRs
0Releases
28Commits
4Commit identities
case-based-reasoningcox-regressioncrandistance-matrixmachine-learningnearest-neighborsrr-package
28 commits · Last activity 2026-02-26 · 0% stars, 30d
Responsiveness
How these are sampled
PRs merged (all time)
100%
Median days to close, 50 most recently updated closed issues
106
Median days to close, 50 most recently updated closed PRs
90

Stars over time

2025-10-29 · 12026-07-07 · 2
PracticesBeta

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

Checks run against github.com/sipemu/case-based-reasoning 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

Governance and community (1)
Code of conduct
CRAN release process (1)
cran-comments.md
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v3 (2026-09-26)
AI coding toolsBeta

This repository shows signs of AI coding tools.

  • Claude Codefirst seen 2026-02-19
    Commits: at least 13 crediting it in the message
Models named in its commits
  • Claude Opus 4.613 commits · Feb 2026
Counts are commits, not lines of code. Commits by a tool's accounts count once across all of its accounts. Commits crediting it are the largest count among its credit lines, a minimum.How this is detected·Detection ruleset v4 (updated 2026-09-27)

Dependencies

Declared dependencies
14 external dependencies (excludes base and recommended)

Installing CaseBasedReasoning adds 66 packages (37 with compiled code, 71 MB of source tarballs). Heaviest: stringi 11 MB, TH.data 8.2 MB, ggplot2 6.0 MB.

Depends (1)
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

People & History

People (2)
Author, Maintainer · added in 0.3

Maintainer since 0.1 (2018)

Listed in earlier versions (1)
Dr. Simon Mueller
no longer listed · 0.1
Releases (4)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • 0.4.1Latest
    record
    2026-02-27 · current release · diff ↗
  • unarchivedReturned to CRAN
    2026-02-26
  • 0.4
    record
    2026-02-26 · diff ↗ ·
    added 4 exports
    as_dist_object, distance_random_forest, terminal_nodes, weighted_distance
  • archivedRemoved from CRAN
    2026-01-30
    requires archived package 'pryr'
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • unarchivedReturned to CRAN
    2023-05-02
  • 0.3
    record
    2023-05-02 · diff ↗ ·
    removed 7 exports
    %>%, CoxBetaModel, depthMatrix, distanceTerminalNodes, forestToMatrix, proximityMatrix, terminalNodeIDs
    added 9 exports
    CoxModel, LinearModel, LogisticModel, depth_distance, edges_between_terminal_nodes, generate_grid, proximity_distance, ranger_forests_to_matrix, terminalNodes
  • 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
  • archivedRemoved from CRAN
    2019-10-01
    installation issues were not corrected in time
  • R
    R 3.6.0 released · 2019-04-26
  • 0.1
    record
    2018-06-12
Show 1 earlier eventHide 1 earlier event
  • R
    R 3.5.0 released · 2018-04-23

Package metadata

First published
2018-06-12
Total releases
4 / 8 yrs
License
MIT + file LICENSE OSI · relicensed from AGPL in 0.3
Download size
285 KB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("CaseBasedReasoning")
Mueller, S., & Dippon, P. D. J. (2026). CaseBasedReasoning: Case Based Reasoning (Version 0.4.1) [Computer software]. https://doi.org/10.32614/CRAN.package.CaseBasedReasoning

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 CaseBasedReasoning version 0.4.1 [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