Skip to content

caretEnsemble

4.0.2Package record

Ensembles of Caret Models

2packages dependsuggested by 2
36.8Kdownloads / year
100.0%test coverage
13/13flavors OK

Overview

About

Functions for creating ensembles of caret models: caretList() and caretStack(). caretList() is a convenience function for fitting multiple caret::train() models to the same dataset. caretStack() will make linear or non-linear combinations of these models, using a caret::train() model as a meta-model.

Changes in 4.0.2

New Features

  • Add option to keep resamples for each repeated fold in caretStack and caretList, rather than aggregating to one resample per row in the original data. This can give your stacking model more variance to work with, but can lead to a lot more issues with aligning predictions from different models, particularly ones that use different resampling strategies.
  • Add an option to include original features from the raw data in the stack, if stacking on a new dataset rather than on stacked predictions.
  • Add plot_variable_importance() to visualize variable importance for caretStack and caretEnsemble models.

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 7.2 min · r-oldrel-windows-x86_64
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK13 OK2026-07-03
  • ERROR13 OK, 1 ERROR2026-03-10
Advisories

none known

Documentation

In release 4.0.2
README· In the repository, left out of the releaseVignettesYes · 2 · dynamicNEWSYes · 100% structured · mentions 4.0.2Citation fileNoWebsiteYes · pkgdown
Help pages
67 (27 internal)includes a package overview page
Examples that run
100%11 run in a plain check
Exported functions with examples
29%
Documented parameters
97%
Return-value docs
64%
Help pages citing references
1%

Downloads

36.8K
CRAN downloads in the past year
Rank #2,466 · ~101/day · ~3.1K/mo
Daily download trend is not available in this view yet.
2.7K30 days
6.4K90 days
36.8K1 year
Compare downloads with other packages →
Also on648 r2u24 autocran3.2K conda_forge

Repository

229Stars
75Forks
5Open issues
10Open PRs
8Releases
617Commits
13Commit identities
617 commits · Last activity 2026-07-08 · 0% stars, 30d · Default branch at 4.0.3, ahead of CRAN 4.0.2 (checked 2026-10-11)
Responsiveness
How these are sampled
PRs merged (all time)
87%
Median days to close, 50 most recently updated closed issues
1,160
Median days to close, 50 most recently updated closed PRs
0

Stars over time

2025-09-13 · 2282026-07-07 · 229
PracticesBeta

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

Checks run against github.com/zachmayer/caretensemble on 2026-10-11.

Continuous integration (2)
GitHub ActionsR CMD check workflow

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

Governance and community (4)
Contributing guideIssue templatesFunding

Funding links: GitHub Sponsors

The repository owner accepts GitHub Sponsors

Docs source (3)
pkgdown

GitHub Pages site last deployed 2026-07-08 · The repository has a site deploy workflow

pkgdown site last built 2026-07-08

Coverage (1)
Coverage reporting
Show all practicesHide 5 practices
Reproducibility and dev environment (1)
Makefile
CRAN release process (2)
cran-comments.mdrevdep/
Automation and maintenance (1)
Dependabot
Lint, format, editor (2)
lintrRStudio project
Git structural (1)
.gitattributes
How this is detected·Detection ruleset v3 (2026-09-26)
AI coding toolsBeta

This repository shows signs of AI coding tools.

  • OpenHandsfirst seen 2024-11-28
    Named in .Rbuildignore: .openhands_instructions
    Pull request it wrote: opened by a project member
    Commits: at least 2 crediting it in the message
  • Aiderfirst seen 2024-11-30
    Named in .gitignore: .aider*
  • Claude Codefirst seen 2026-04-01
    Named in .Rbuildignore: .claude, CLAUDE.md
    Pull request it wrote: opened by a project member
    Commits: at least 12 crediting it in the message
Review tools
  • CodeRabbit
    Seen in the repository: .coderabbit.yaml
    Named in .Rbuildignore: .coderabbit.yaml
Models named in its commits
  • Claude Opus 4.810 commits · Jun to Jul 2026
  • Claude Opus 4.61 commit · Apr 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
29 external dependencies (excludes base and recommended)

Installing caretEnsemble adds 65 packages (34 with compiled code, 51 MB of source tarballs). Heaviest: stringi 11 MB, ggplot2 6.0 MB, data.table 5.7 MB.

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

Datasets

People & History

People (3)
Author, Maintainer since 1.0.0 (2015), Copyright holder
Contributor
Contributor · added in 4.0.0
Listed in earlier versions (2)
Zachary A.
no longer listed · 1.0.0 to 4.0.2
Jared E.
no longer listed · 1.0.0 to 4.0.2
Releases (8)

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
  • 4.0.2Latest
    record
    2024-09-12 · current release · diff ↗ ·
    added 1 export
    plot_variable_importance
  • 4.0.1
    record
    2024-09-12 · diff ↗
  • 4.0.0
    record
    2024-08-17 · diff ↗ ·
    removed 8 exports
    autoplot, getBinaryTargetLevel, getMetric, getMetricSD, is.caretEnsemble, is.caretList, is.caretStack, setBinaryTargetLevel
    added 8 exports
    defaultControl, defaultMetric, extractMetric, greedyMSE, greedyMSE_caret, permutationImportance, tuneCheck, wtd.sd
  • R
    R 4.4.0 released · 2024-04-24
  • 2.0.3
    record
    2023-09-20 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • 2.0.2
    record
    2023-02-09 · diff ↗
  • 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
  • 2.0.1
    record
    2019-12-12 · diff ↗ ·
    added 3 exports
    as.caretList, getBinaryTargetLevel, setBinaryTargetLevel
  • R
    R 3.6.0 released · 2019-04-26
  • R
    R 3.5.0 released · 2018-04-23
  • R
    R 3.4.0 released · 2017-04-21
Show 5 earlier eventsHide 5 earlier events
  • R
    R 3.3.0 released · 2016-05-03
  • 2.0.0
    record
    2016-02-07 · diff ↗ ·
    removed 3 exports
    greedOptAUC, greedOptRMSE, safeOptAUC
    added 5 exports
    autoplot, getMetricSD, is.caretEnsemble, is.caretList, is.caretStack
  • R
    R 3.2.0 released · 2015-04-16
  • 1.0.0
    record
    2015-01-16
  • R
    R 3.1.0 released · 2014-04-10

Package metadata

First published
2015-01-16
Total releases
8 / 11 yrs
License
MIT + file LICENSE OSI
Minimum R
≥ 4.1.0
Bundled data
1.5 MB / 6 files
Download size
1.8 MB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("caretEnsemble")
Deane-Mayer, Z. A., Jared E. Knowles, & López, A. (2026). caretEnsemble: Ensembles of Caret Models (Version 4.0.2) [Computer software]. https://doi.org/10.32614/CRAN.package.caretEnsemble

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 caretEnsemble version 4.0.2 [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