Skip to content

Machine Learning in R - Next Generation

45packages dependsuggested by 21
319.6Kdownloads / year
–test coverage
13/13flavors OK

Overview

About

Efficient, object-oriented programming on the building blocks of machine learning. Provides 'R6' objects for tasks, learners, resamplings, and measures. The package is geared towards scalability and larger datasets by supporting parallelization and out-of-memory data-backends like databases. While 'mlr3' focuses on the core computational operations, add-on packages provide additional functionality.

Changes in 1.8.0
  • feat: Added msr("best_valid_score") (mlr_measures_best_valid_score), which reports the *best* internal validation score observed during training/
  • feat: Added the diabetes task (mlr_tasks_diabetes) for the synthetic mlbench::SynthDiabetes2 data set, which has the same structure as the former pima task including missing values, for use in examples and tests.
  • BREAKING CHANGE: Removed the pima task (mlr_tasks_pima) because the PimaIndiansDiabetes2 data set was removed from the mlbench package, use tsk("diabetes") instead.
  • perf: TaskClassif$print() now caches the class distribution of the target column and only recomputes it when the task hash changes. Querying the target column can be slow for tasks with many rows.

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 16.1 min · r-oldrel-windows-x86_64
Status changes
  • OK13 OK2026-08-27
  • ERROR9 OK, 1 NOTE, 3 ERROR2026-07-25
  • NOTE12 OK, 1 NOTE2026-07-11
  • OK13 OK2026-07-04
  • WARNING12 OK, 1 WARNING2026-07-03
Show 4 earlier changesHide 4 earlier changes
  • OK13 OK2026-06-09
  • ERROR12 OK, 1 ERROR2026-06-08
  • OK14 OK2026-04-08
  • NOTE13 OK, 1 NOTE2026-03-10
Advisories

none known

Documentation

In release 1.8.0
READMEYes · 1,023 wordsVignettesNoNEWSYes · 100% structured · mentions 1.8.0Citation fileYes · cites a publicationWebsiteYes · pkgdown
Cites a JOSS paper
Help pages
174 (12 internal)includes a package overview page
Examples that run
100%72 run in a plain check
Exported functions with examples
64%
Documented parameters
95%
Return-value docs
23%
Help pages citing references
8%

Downloads

319.6K
CRAN downloads in the past year
Rank #780 · ~876/day · ~26.6K/mo
Daily download trend is not available in this view yet.
15.5K30 days
61K90 days
319.6K1 year
Compare downloads with other packages →
Also on31K r2u4 autocran35.9K conda_forge145 c2d4u

Repository

1,082Stars
98Forks
23Open issues
13Open PRs
52Releases
2,354Commits
30Commit identities
machine-learningdata-scienceclassificationregressionrmlr3r-package
License file reads as LGPL-3.0 · 2,354 commits · Last activity 2026-09-25 · +0.4% stars, 30d · Default branch at 1.8.0.9000, ahead of CRAN 1.8.0 (checked 2026-10-11) · Discussions: 23 posts
Responsiveness
How these are sampled
PRs merged (all time)
88%
Median days to close, 50 most recently updated closed issues
89
Median days to close, 50 most recently updated closed PRs
1

Stars over time

2025-10-04 · 1,0232026-10-09 · 1,082
PracticesBeta

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

Checks run against github.com/mlr-org/mlr3 on 2026-10-11.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux, and on R-devel

Governance and community (4)
Code of conductContributing guide

Funding links: GitHub Sponsors

The repository owner accepts GitHub Sponsors

Docs source (4)
README.Rmdpkgdown

GitHub Pages site last deployed 2026-09-25 · The repository has a site deploy workflow

pkgdown site last built 2026-08-21

Automation and maintenance (1)
Dependabot
Show all practicesHide 2 practices
Lint, format, editor (5)
lintrAirEditorConfigVS CodeRStudio project
Git structural (1)
blame-ignore revs
How this is detected·Detection ruleset v3 (2026-09-26)
AI coding toolsBeta

This repository shows signs of AI coding tools.

  • Cursorfirst seen 2025-05-16
    Named in .Rbuildignore: .cursor
  • Claude Codefirst seen 2026-02-19
    Seen in the repository: .claude, CLAUDE.md
    Named in .Rbuildignore: .claude, CLAUDE.md
    Named in .gitignore: .claude, CLAUDE.md
    Pull request it wrote: opened by a project member
    Commits: at least 28 crediting it in the message
  • Gemini CLIfirst seen 2026-03-17
    Config: a file or ignore line, not recorded which
  • Codexfirst seen 2026-09-23
    Seen in the repository: .codex
    Named in .Rbuildignore: .codex
Shared conventions any agent may read, so they name no particular tool.
Seen in the repository: AGENTS.md
Models named in its commits
  • Claude Opus 4.616 commits · Mar to Apr 2026
  • Claude Fable 5.13 commits · Sep 2026
  • Claude Opus 53 commits · Aug to Sep 2026
  • Claude Fable 52 commits · Jun 2026
  • Claude Opus 4.72 commits · Apr to Jun 2026

1 more model not listed.

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
24 external dependencies (excludes base and recommended)

Installing mlr3 adds 23 packages (11 with compiled code, 15 MB of source tarballs). Heaviest: data.table 5.7 MB, palmerpenguins 2.9 MB, mlbench 967 KB.

Depends (1)
R >= 3.5.0
LinkingTo (0)
none
Enhances (0)
none

Datasets

People & History

People (17)
Maintainer since 0.20.0 (2024), Author · added in 0.7.0
Author · added in 0.14.1
Author · added in 0.14.1
Author · added in 0.14.1
Contributor
Contributor
Contributor · added in 0.20.2
Contributor · added in 1.7.0
Contributor · added in 1.2.0
Contributor · added in 0.14.1
Contributor · added in 0.23.0

Previously maintained by Michel Lang (0.1.1 to 0.19.0).

Releases (53)

Pick two releases to compare their code metrics.

  • 1.8.0Latest
    record
    2026-08-21 · current release · diff ↗ ·
    added 1 export
    MeasureBestValidScore
  • 1.7.1
    record
    2026-06-11 · diff ↗
  • 1.7.0
    record
    2026-06-10 · diff ↗
  • R
    R 4.6.0 released · 2026-04-24
  • 1.6.0
    record
    2026-04-02 · diff ↗
  • 1.5.0
    record
    2026-02-27 · diff ↗
  • 1.4.0
    record
    2026-02-19 · diff ↗ ·
    removed 2 exports
    deprecated_binding, warn_deprecated
    added 2 exports
    deprecated_binding_old, warn_deprecated_old
  • 1.3.0
    record
    2025-12-03 · diff ↗
  • 1.2.0
    record
    2025-09-14 · diff ↗ ·
    removed 1 export
    DataBackendMatrix
    added 2 exports
    assert_quantiles, default_fallback
  • 1.1.0
    record
    2025-07-30 · diff ↗ ·
    added 2 exports
    MeasureRegrRQR, assert_has_backend
  • 1.0.1
    record
    2025-07-03 · diff ↗ ·
    added 1 export
    TaskGeneratorPeak
  • 1.0.0
    record
    2025-06-18 · diff ↗ ·
    added 4 exports
    MeasureRegrPinball, score_roc_measures, uhash, uhashes
  • R
    R 4.5.0 released · 2025-04-11
  • 0.23.0
    record
    2025-03-12 · diff ↗ ·
    added 10 exports
    CallbackResample, ContextResample, assert_empty_ellipsis, assert_resample_callback, assert_resample_callbacks, assert_scorable, callback_resample, clbk, clbks, mlr_callbacks
  • 0.22.1
    record
    2024-11-27 · diff ↗
  • 0.22.0
    record
    2024-11-24 · diff ↗
Show 45 earlier eventsHide 45 earlier events
  • 0.21.1
    record
    2024-10-18 · diff ↗
  • 0.21.0
    record
    2024-09-24 · diff ↗ ·
    added 5 exports
    MeasureRegrRSQ, create_empty_prediction_data, deprecated_binding, task_check_col_roles, warn_deprecated
  • 0.20.2
    record
    2024-07-29 · diff ↗
  • 0.20.1
    record
    2024-07-22 · diff ↗
  • 0.20.0
    record
    2024-06-28 · diff ↗ ·
    added 3 exports
    MeasureInternalValidScore, assert_validate, set_validate
  • 0.19.0
    record
    2024-04-24 · diff ↗ ·
    added 6 exports
    is_marshaled_model, learner_marshal, learner_marshaled, learner_unmarshal, marshal_model, unmarshal_model
  • R
    R 4.4.0 released · 2024-04-24
  • 0.18.0
    record
    2024-03-05 · diff ↗
  • 0.17.2
    record
    2024-01-09 · diff ↗
  • 0.17.1
    record
    2023-12-21 · diff ↗
  • 0.17.0
    record
    2023-11-17 · diff ↗ ·
    added 1 export
    col_info
  • 0.16.1
    record
    2023-06-18 · diff ↗ ·
    added 1 export
    data.table
  • 0.16.0
    record
    2023-05-05 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • 0.15.0
    record
    2023-03-17 · diff ↗ ·
    removed 1 export
    MeasureDebug
    added 1 export
    MeasureDebugClassif
  • 0.14.1
    record
    2022-11-02 · diff ↗
  • 0.14.0
    record
    2022-08-11 · diff ↗ ·
    added 2 exports
    as_task_unsupervised, as_tasks_unsupervised
  • 0.13.4
    record
    2022-07-21 · diff ↗
  • R
    R 4.2.0 released · 2022-04-22
  • 0.13.3
    record
    2022-03-01 · diff ↗
  • 0.13.2
    record
    2022-02-14 · diff ↗
  • 0.13.1
    record
    2022-01-19 · diff ↗
  • 0.13.0
    record
    2021-11-16 · diff ↗ ·
    added 6 exports
    HotstartStack, LearnerRegrDebug, MeasureSimilarity, extract_pkgs, filter_prediction_data, install_pkgs
  • 0.12.0
    record
    2021-08-05 · diff ↗ ·
    added 5 exports
    MeasureAIC, MeasureBIC, ResamplingCustomCV, assert_predictable, partition
  • R
    R 4.1.0 released · 2021-05-18
  • 0.11.0
    record
    2021-03-05 · diff ↗ ·
    added 4 exports
    as_prediction_classif, as_prediction_regr, as_predictions, set_threads
  • 0.10.0
    record
    2021-01-21 · diff ↗
  • 0.9.0
    record
    2020-12-06 · diff ↗
  • 0.8.0
    record
    2020-10-21 · diff ↗
  • 0.7.0
    record
    2020-10-07 · diff ↗ ·
    added 2 exports
    ResultData, as_result_data
  • 0.6.0
    record
    2020-09-13 · diff ↗ ·
    added 8 exports
    as_prediction, as_prediction_data, as_resample_result, as_task_classif, as_task_regr, check_prediction_data, convert_task, is_missing_prediction_data
  • 0.5.0
    record
    2020-08-07 · diff ↗ ·
    added 1 export
    ResamplingLOO
  • 0.4.0
    record
    2020-07-22 · diff ↗ ·
    added 5 exports
    TaskGeneratorCassini, TaskGeneratorCircle, TaskGeneratorMoons, TaskGeneratorSimplex, TaskGeneratorSpirals
  • 0.3.0
    record
    2020-06-02 · diff ↗
  • R
    R 4.0.0 released · 2020-04-24
  • 0.2.0
    record
    2020-04-17 · diff ↗ ·
    added 3 exports
    ResamplingInsample, TaskUnsupervised, auto_convert
  • 0.1.8
    record
    2020-03-10 · diff ↗
  • 0.1.7
    record
    2020-02-23 · diff ↗
  • 0.1.6
    record
    2019-12-19 · diff ↗
  • 0.1.5
    record
    2019-12-10 · diff ↗ ·
    removed 9 exports
    MeasureClassifACC, MeasureClassifAUC, MeasureClassifCE, MeasureClassifConfusion, MeasureClassifFScore, MeasureRegrMAE, MeasureRegrMSE, MeasureRegrRMSE, confusion_measures
    added 1 export
    assert_learnable
  • 0.1.4
    record
    2019-10-29 · diff ↗ ·
    removed 1 export
    MeasureClassifF1
    added 6 exports
    MeasureClassifFScore, lrns, msrs, rsmps, tgens, tsks
  • 0.1.3
    record
    2019-09-18 · diff ↗ ·
    removed 1 export
    hash_resample_result
    added 1 export
    MeasureDebug
  • 0.1.2
    record
    2019-08-26 · diff ↗ ·
    removed 9 exports
    Generator, Generator2DNormals, GeneratorFriedman1, GeneratorSmiley, GeneratorXor, cast_from_dict, expand_grid, mlr_control, mlr_generators
    added 23 exports
    TaskGenerator, TaskGenerator2DNormals, TaskGeneratorFriedman1, TaskGeneratorSmiley, TaskGeneratorXor, as_benchmark_result, as_learner, as_learners, as_measure, as_measures, as_resampling, as_resamplings, as_task, as_tasks, benchmark_grid, default_measures, hash_resample_result, lrn, mlr_task_generators, msr, rsmp, tgen, tsk
  • 0.1.1
    record
    2019-07-25
  • R
    R 3.6.0 released · 2019-04-26

Package metadata

First published
2019-07-25
Total releases
53 / 7 yrs
License
LGPL-3 OSI
Minimum R
≥ 3.5.0
Download size
850 KB

Cite

Cite this package

Run in R for the authors' entry:

citation("mlr3")

The package provides a citation file, so citation() returns the authors' own entry.

It points to 10.21105/joss.01903.

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 mlr3 version 1.8.0 [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