Skip to content

caret

7.0-1

Classification and Regression Training

317packages depend
2.1Mdownloads / year
33.6%test coverage
8/13checks pass

Overview

About
Maintained by Max KuhnFirst published 2007-10-05168 releasesCRAN page ↗GitHub ↗

Misc functions for training and plotting classification and regression models.

Install

Health

CRAN checks
1ERROR4NOTE8OK
Failing flavors
  • NOTE r-devel-linux-x86_64-debian-clang
  • NOTE r-devel-linux-x86_64-debian-gcc
  • NOTE r-devel-linux-x86_64-fedora-gcc
  • NOTE r-devel-windows-x86_64
  • ERROR r-oldrel-macos-x86_64
Slowest check: 11.2 min · r-devel-linux-x86_64-fedora-clang
Code health
Yes
Tests · ratio 0.10
33.6%
Coverage · measured lines
100%
Documentation · exports
16
Dependencies · direct
Check history
  • ERROR2026-03-10
    13 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE

Documentation

Documentation
READMENoVignettesYes · dynamicpkgdown siteNoNEWSNoCode of conductNoContributing guideNo
Examples that run
55%
Documented parameters
88%
Return-value docs
92%
References docs
34%

Downloads

2.1M
CRAN downloads in the past year
Rank #285 · ~5.8K/day · ~175.2K/mo
Daily download trend is not available in this view yet.
115K30 days
457.1K90 days
2.1M1 year
Compare downloads with other packages →
Also on8.6K r2u140 autocran279.5K conda_forge9.5K c2d4u

Repository

Repository
1,672Stars
628Forks
211Open issues
30Open PRs
4Releases
2,070Commits
114Contributors
2,070 commits · Last activity 2026-07-22 · -0.1% stars, 30d

Stars over time

2025-07-21 · 1,6362026-07-15 · 1,673

Repository practices

Upstream repositoryBeta

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

Checks run against github.com/topepo/caret on 2026-07-19.

Continuous integration (1)
GitHub Actions
Lint, format, editor (1)
RStudio project
Coverage (1)
Codecov
Governance and community (2)
Issue templatesCODEOWNERS
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
35 external dependencies (excludes base and recommended)
Depends (3)
R >= 3.2.0ggplot2lattice
Imports (14)
e1071foreachgrDevicesmethodsModelMetricsnlmeplyrpROCrecipesreshape2statsstats4utilswithr
LinkingTo (0)
none
Enhances (0)
none

Code & Tests

Code Composition
R 31,190 (72%)Rd 11,866 (27%)C 259 (1%)Vignettes 242 (1%)
Code characteristics
Object systems
S3251
Cyclomatic complexity
3.0 median / 139 max
Test cases
105 / 0.10 per code line

Test coverage

Line coverage

34%

Expression

32.0%

Tests / Examples

33.6% / 18% ex

Functions

549 153 exported

Complexity

6.1 avg / 139 max

Call network

549 nodes / 572 edges

Loading call graph…

Lowest coverage

549 functions
FunctionCycloCoverage
F_meas exp10%
LPH07_1 exp50%
LPH07_2 exp20%
MAE exp10%
SLC14_2 exp20%
avNNet exp10%

Datasets

Bundled datasets · 17
NameClassRows × ColsAlso ships in
GermanCreditdata.frame1,000 × 62
Sacramentodata.frame932 × 9in 2 packages
bbbDescrdata.frame208 × 134
carsdata.frame804 × 18in 2 packages
cox2Classfactor
cox2Descrdata.frame462 × 255
cox2IC50vector
dhfrdata.frame325 × 229
fattyAcidsdata.frame96 × 7
logBBBvector
mdrrClassfactor
mdrrDescrdata.frame528 × 342
oilTypefactor
potteryClassfactor
scatdata.frame110 × 19in 2 packages
scat_origdata.frame122 × 20
segmentationDatadata.frame2,019 × 61

People & History

People (17)
Maintainer (1)
Author, Maintainer
Authors (1)
Author, Maintainer
Contributors (16)
Contributor · added in 6.0-85
Contributor · added in 6.0-41
Contributor · added in 6.0-72
Contributor · added in 5.15-052
Contributor · added in 4.17
Contributor · added in 6.0-85
Contributor · added in 4.11
Contributor · added in 6.0-37
Show 8 more contributors
Contributor · added in 6.0-41
Contributor · added in 6.0-21
Contributor · added in 6.0-57
Contributor · added in 6.0-57
Contributor
Contributor
Contributor
Contributor · added in 6.0-41
Listed in earlier versions (8)
no longer listed · 2.7.0 to 3.16
no longer listed · 2.7.1 to 6.0-84
no longer listed · 6.0-21 to 6.0-84
no longer listed · 6.0-37
no longer listed · 6.0-41 to 6.0-52
no longer listed · 6.0-57 to 6.0-58
no longer listed · 6.0-62 to 6.0-71
no longer listed · 6.0-72 to 6.0-84
Package Timeline

168 releases. Pick two to compare their code metrics. R releases are shown for context.

  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • 7.0-1Latest
    2024-12-10 · current release · diff ↗
  • R
    R 4.4.0 released · 2024-04-24
  • R
    R 4.3.0 released · 2023-04-21
  • 6.0-94
    2023-03-21 · diff ↗
  • 6.0-93
    2022-08-09 · diff ↗
  • R
    R 4.2.0 released · 2022-04-22
  • 6.0-92
    2022-04-19 · diff ↗
  • 6.0-91
    2022-03-11 · diff ↗
  • 6.0-90
    2021-10-09 · diff ↗
  • 6.0-89
    2021-09-28 · diff ↗
  • R
    R 4.1.0 released · 2021-05-18
  • 6.0-88
    2021-05-15 · diff ↗
  • R
    R 4.0.0 released · 2020-04-24
  • 6.0-86
    2020-03-20 · diff ↗
Show 176 earlier events

Package metadata

First published
2007-10-05
Total releases
168 / 19 yrs
License
GPL (>= 2) OSI
Minimum R
≥ 3.2.0
Bundled data
1.5 MB / 13 files
Download size
2.2 MB
Installed size
not tracked yet
With dependencies
not tracked yet
Report a problem with this page →