Skip to content

mlr3spatial

Support for Spatial Objects Within the 'mlr3' Ecosystem

v0.6.1 · Sep 14, 2025 · LGPL-3

Description

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

Downloads

CRAN

2.6K

Last 30 days

2391st

11.3K

Last 90 days

40.9K

Last year

Trend: -46.2% (30d vs prior 30d)

r2u CRAN

4

Last 30 days

32

Last 90 days

155

Last year

Trend: -63.6% (30d vs prior 30d)

autoCRAN

0

Last 7 days

13

Last 30 days

0

All-time

autoCRAN-only: this name is served only by autoCRAN, so the count is exact.

CRAN Check Status

13 OK
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Jun 9, 2026
ERROR 12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Jun 8, 2026
ERROR r-devel-linux-x86_64-debian-gcc

tests

Running ‘testthat.R’ [44s/58s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > if (requireNamespace("testthat", quietly = TRUE)) {
  +   library("checkmate")
  +   library("testthat")
  +   library("mlr3spatial")
  +   test_check
...[truncated]...
)
   19.                                 └─value[[3L]](cond)
   20.                                   └─future.apply:::onError(e, futures = fs, debug = debug)
  
  [ FAIL 1 | WARN 2 | SKIP 0 | PASS 324 ]
  Error:
  ! Test failures.
  Execution halted
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Apr 3, 2026
ERROR 13 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Apr 3, 2026
ERROR r-devel-linux-x86_64-fedora-clang

tests

Running ‘testthat.R’ [3m/27m]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > if (requireNamespace("testthat", quietly = TRUE)) {
  +   library("checkmate")
  +   library("testthat")
  +   library("mlr3spatial")
  +   test_check(
...[truncated]...
)
   19.                                 └─value[[3L]](cond)
   20.                                   └─future.apply:::onError(e, futures = fs, debug = debug)
  
  [ FAIL 1 | WARN 1 | SKIP 0 | PASS 324 ]
  Error:
  ! Test failures.
  Execution halted
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Code

Structure

Lines of code

4,122

Files

70

Compiled share

0%

Has compiled src

No

Language breakdown

R 1,315 (31.9%)Tests 1,326 (32.2%)Docs 1,251 (30.3%)Vignettes 230 (5.6%)

API

Exported functions

30

Internal functions

8

Recent export changes

v0.6.1+1 weights_layer

Testing & CI

Has tests

Yes

Test-to-code ratio

1.01

testthat edition

3

CI present

No

CI type

[]

PR gated

No

Docs

Return-value doc rate

56.3%

\dontrun example ratio

0%

Roxygen coverage

100%

Has pkgdown

No

NEWS present

Yes

Health & Security signals

Informational signals; not verdicts.

on.exit coverage

0%

Unsafe pattern score

0

Dep constraint coverage

70%

Secret pattern count

0

Bundled 3rd-party code

2 items

Portability & License

Min R version

3.1.0

System requirements

C++ standard

License

LGPL-3

License flags

SPDX valid, OSI approved

History

Versions

12

First release

2021-11-16

Latest release

2025-09-14

Avg cadence

65 days

Cold removal rate

100%

Dep drift

3

LOC over versions

v0.1.0: 2,549 LOCv0.1.1: 2,550 LOCv0.1.2: 2,550 LOCv0.2.0: 3,577 LOCv0.2.1: 3,578 LOCv0.3.0: 3,578 LOCv0.3.1: 4,022 LOCv0.4.0: 4,014 LOCv0.4.1: 4,019 LOCv0.5.0: 4,019 LOCv0.6.0: 4,057 LOCv0.6.1: 4,122 LOC

Per-file churn detail lives in the source pipeline: https://github.com/r-observatory/cran-code-metrics.

Reverse Dependencies (2)

Dependency Network

Dependencies Reverse dependencies mlr3 checkmate data.table lgr mlr3misc R6 sf terra (>= 1.6-3) mlr3spatiotempcv mlr3verse mlr3spatial

Version History

13 tracked
new 0.6.1 Mar 10, 2026
updated 0.6.1 ← 0.6.0 diff Sep 13, 2025
updated 0.6.0 ← 0.5.0 diff Jul 17, 2025
updated 0.5.0 ← 0.4.1 diff Mar 8, 2024
updated 0.4.1 ← 0.4.0 diff May 2, 2023
updated 0.4.0 ← 0.3.1 diff Feb 26, 2023
updated 0.3.1 ← 0.3.0 diff Dec 15, 2022
updated 0.3.0 ← 0.2.1 diff Oct 19, 2022
updated 0.2.1 ← 0.2.0 diff Aug 24, 2022
updated 0.2.0 ← 0.1.2 diff Aug 17, 2022
updated 0.1.2 ← 0.1.1 diff Mar 5, 2022
updated 0.1.1 ← 0.1.0 diff Jan 19, 2022
new 0.1.0 Nov 15, 2021