Skip to content

mlr3spatial

0.7.0Package record

Support for Spatial Objects Within the 'mlr3' Ecosystem

0packages dependsuggested by 2
35.2Kdownloads / year
90.4%test coverage
13/13flavors OK

Overview

About

Extends the 'mlr3' ML framework with methods for spatial objects. Data storage and prediction are supported for packages 'terra', 'raster' and 'stars'.

Changes in 0.7.0
  • fix: DataBackendRaster no longer errors with [names<-] incorrect number of names when a subset of layers is read from a shared multi-band source file.
  • fix: DataBackendRaster no longer errors when raster layers have partially matching names, e.g. predict_spatial() failed with layers named "test_name" and "test_name2" (#94).
  • feat: predict_spatial() supports probability predictions now. Train a classification learner with predict_type = "prob" to get one raster layer or one vector column per class.

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 7.6 min · r-oldrel-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
  • OK14 OK2026-04-04
Show 2 earlier changesHide 2 earlier changes
  • ERROR13 OK, 1 ERROR2026-04-03
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 0.7.0
READMEYes · 504 wordsVignettesYes · 1 · staticNEWSYes · 100% structured · mentions 0.7.0Citation fileNoWebsiteYes · pkgdown
Help pages
18 (8 internal)includes a package overview page
Examples that run
100%2 run in a plain check (1 of them under a condition)
Exported functions with examples
6%
Documented parameters
91%
Return-value docs
56%
Help pages citing references
0%

Downloads

35.2K
CRAN downloads in the past year
Rank #2,682 · ~96/day · ~2.9K/mo
Daily download trend is not available in this view yet.
2K30 days
5.8K90 days
35.2K1 year
Compare downloads with other packages →
Also on132 r2u4 autocran

Repository

45Stars
5Forks
1Open issues
0Open PRs
13Releases
285Commits
8Commit identities
raster-predictionspatialspatial-modellingrr-packagemlr3
285 commits · Last activity 2026-09-23 · 0% stars, 30d · Default branch at 0.7.0.9000, ahead of CRAN 0.7.0 (checked 2026-10-21) · Discussions: 5 posts
Responsiveness
How these are sampled
PRs merged (all time)
90%
Median days to close, 50 most recently updated closed issues
11
Median days to close, 50 most recently updated closed PRs
0

Stars over time

2025-06-17 · 442026-08-23 · 45
PracticesBeta

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

Checks run against github.com/mlr-org/mlr3spatial on 2026-10-21.

Continuous integration (2)
GitHub ActionsR CMD check workflow

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

Governance and community (3)
Contributing guide (inherited from mlr-org)

Funding links: GitHub Sponsors

The repository owner accepts GitHub Sponsors

Docs source (4)
README.Rmdpkgdown

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

pkgdown site last built 2026-07-14

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 v4 (2026-10-20)
AI coding toolsBeta

This repository shows signs of AI coding tools.

  • Claude Codefirst seen 2026-03-18
    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 10 crediting it in the message
  • Cursorfirst seen 2026-03-18
    Named in .Rbuildignore: .cursor
  • Gemini CLIfirst seen 2026-03-18
    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 Fable 53 commits · Jun to Jul 2026
  • Claude Opus 4.62 commits · Mar 2026
  • Claude Opus 4.82 commits · Jul 2026
  • Claude Opus 4.71 commit · Apr 2026
  • Claude Opus 51 commit · Sep 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
19 external dependencies (excludes base and recommended)

Installing mlr3spatial adds 34 packages (20 with compiled code, 34 MB of source tarballs). Heaviest: sf 9.3 MB, data.table 5.7 MB, palmerpenguins 2.9 MB.

Depends (2)
R >= 3.1.0mlr3
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect
Suggested by 2
Suggests, most downloaded first

Datasets

People & History

People (2)
Author, Maintainer since 0.1.0 (2021)
Releases (13)

Pick two releases to compare their code metrics.

  • 0.7.0Latest
    record
    2026-07-14 · current release · diff ↗
  • R
    R 4.6.0 released · 2026-04-24
  • 0.6.1
    record
    2025-09-14 · diff ↗ ·
    added 1 export
    weights_layer
  • 0.6.0
    record
    2025-07-18 · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • 0.5.0
    record
    2024-03-09 · diff ↗
  • 0.4.1
    record
    2023-05-03 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • 0.4.0
    record
    2023-02-27 · diff ↗
  • 0.3.1
    record
    2022-12-16 · diff ↗ ·
    added 2 exports
    DataBackendVector, as_data_backend.sf
  • 0.3.0
    record
    2022-10-20 · diff ↗
  • 0.2.1
    record
    2022-08-25 · diff ↗
  • 0.2.0
    record
    2022-08-18 · diff ↗ ·
    removed 3 exports
    DataBackendVector, demo_stack_rasterbrick, demo_stack_spatraster
    added 23 exports
    TaskClassifST, TaskRegrST, as_data_backend.RasterBrick, as_data_backend.RasterStack, as_data_backend.SpatRaster, as_data_backend.stars, as_task_classif_st, as_task_classif_st.DataBackend, as_task_classif_st.TaskClassifST, as_task_classif_st.TaskRegrST, as_task_classif_st.data.frame, as_task_classif_st.sf, as_task_regr_st, as_task_regr_st.DataBackend, as_task_regr_st.TaskClassifST, as_task_regr_st.TaskRegrST, as_task_regr_st.data.frame, as_task_regr_st.sf, factor_layer, generate_stack, mask_stack, numeric_layer, sample_stack
  • R
    R 4.2.0 released · 2022-04-22
  • 0.1.2
    record
    2022-03-06 · diff ↗
Show 3 earlier eventsHide 3 earlier events

Package metadata

First published
2021-11-16
Total releases
13 / 5 yrs
License
LGPL-3 OSI
Minimum R
≥ 3.1.0
Bundled data
5.0 KB / 1 file
Download size
1.8 MB
Appears in task views

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("mlr3spatial")
Becker, M., & Schratz, P. (2026). mlr3spatial: Support for Spatial Objects Within the 'mlr3' Ecosystem (Version 0.7.0) [Computer software]. https://doi.org/10.32614/CRAN.package.mlr3spatial

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

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