Skip to content

magclass

7.5.0Package record

Data Class and Tools for Handling Spatial-Temporal Data

1packages dependsuggested by 2
10.8Kdownloads / year
91.0%test coverage
8/13flavors OK

Overview

About

Data class for increased interoperability working with spatial-temporal data together with corresponding functions and methods (conversions, basic calculations and basic data manipulation). The class distinguishes between spatial, temporal and other dimensions to facilitate the development and interoperability of tools build for it. Additional features are name-based addressing of data and internal consistency checks (e.g. checking for the right data order in calculations).

Install

Health

CRAN checks
5NOTE8OK
Check messages
NOTER code for possible problemsr-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-devel-windows-x86_64
Found calls to structure() using deprecated special names:
  magclass/tests/testthat/test-addDim.R (.Dim: 4, .Dimnames: 4)
  magclass/tests/testthat/test-as.data.frame.R (.Label: 5)
  magclass/tests/testthat/test-as.magpie.R (.Dim: 4, .Dimnames: 4, .Names: 2)
  magclass/tests/testthat/test-complete_magpie.R (.Dim: 1, .Dimnames: 1)
  magclass/tests/testthat/test-convergence.R (.Dim: 1, .Dimnames: 1)
  magclass/tests/testthat/test-dimSums.R (.Dim: 5, .Dimnames: 5)
  magclass/tests/testthat/test-getCPR.R (.Dim: 3, .Dimnames: 3)
  magclass/tests/testthat/test-lowpass.R (.Dim: 1, .Dimnames: 1)
  magclass/tests/testthat/test-magpply.R (.Dim: 3, .Dimnames: 3)
  magclass/tests/testthat/test-mselect.R (.Dim: 1, .Dimnames: 1)
  magclass/tests/testthat/test-readwritemagpie.R (.Dim: 2, .Dimnames: 2)
  magclass/tests/testthat/test-various.R (.Dim: 4, .Dimnames: 3)
  magclass/tests/testthat/test-where.R (.Dim: 3, .Dimnames: 3)
'.Dim' should be changed to 'dim'.
'.Dimnames' should be changed to 'dimnames'.
'.Label' should be changed to 'levels'.
'.Names' should be changed to 'names'.
NOTERd contentsr-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc
Rd files without \usage:
  ‘magpie-class.Rd’
\arguments should not be documented without \usage.

CRAN check page ↗

Slowest check: 6.2 min · r-oldrel-macos-x86_64
Status changes
  • NOTE8 OK, 5 NOTENow
  • NOTE12 OK, 1 NOTE2026-07-11
  • OK12 OK2026-04-25
  • NOTE11 OK, 3 NOTE2026-04-23
  • ERROR10 OK, 3 NOTE, 1 ERROR2026-03-30
  • NOTE11 OK, 3 NOTE2026-03-10
Advisories

none known

Documentation

In release 7.5.0
READMEYes · 288 wordsVignettesYes · 4 · dynamicNEWSNoCitation fileYes · computed when R runs it
Help pages
91 (2 internal)includes a package overview page
Examples that run
92%54 run in a plain check (2 of them under a condition) · 2 never run · 3 hold no code
Exported functions with examples
76%
Documented parameters
95%
Return-value docs
85%
Help pages citing references
0%

Downloads

10.8K
CRAN downloads in the past year
Rank #4,473 · ~30/day · ~903/mo
Daily download trend is not available in this view yet.
74630 days
1.9K90 days
10.8K1 year
Compare downloads with other packages →
Also on199 r2u3 autocran136 c2d4u

Repository

6Stars
28Forks
6Open issues
1Open PRs
10Releases
1,009Commits
27Commit identities
rspatial-temporaldata-structures
License file reads as LGPL-3.0 · 1,009 commits · Last activity 2026-09-14 · 0% stars, 30d · Default branch at 7.6.1, ahead of CRAN 7.5.0 (checked 2026-10-22) · Discussions: 1 post
Responsiveness
How these are sampled
PRs merged (all time)
91%
Median days to close, 50 most recently updated closed issues
5
Median days to close, 50 most recently updated closed PRs
1

Stars over time

2024-11-28 · 52026-07-07 · 6
PracticesBeta

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

Checks run against github.com/pik-piam/magclass on 2026-10-22.

Continuous integration (1)
GitHub Actions
Docs source (3)
pkgdown

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

Coverage (1)
Coverage reporting (Codecov)
Reproducibility and dev environment (1)
Makefile
Show all practicesHide 5 practices
CRAN release process (2)
cran-comments.mdCRAN-SUBMISSION
Research and citation (1)
CITATION.cff
Automation and maintenance (1)
pre-commit
Lint, format, editor (2)
lintrRStudio project
Git structural (1)
.gitattributes
How this is detected·Detection ruleset v4 (2026-10-20)

Dependencies

Declared dependencies
16 external dependencies (excludes base and recommended)

Installing magclass adds 3 packages (2 with compiled code, 6.5 MB of source tarballs). Heaviest: data.table 5.7 MB, rlang 766 KB, abind 21 KB.

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

Datasets

People & History

People (21)
Author, Maintainer since 3.74 (2015)
Potsdam Institute for Climate Impact Research
Author · added in 4.107.0
Author · added in 4.107.0
Potsdam Institute for Climate Impact Research
Author
Potsdam Institute for Climate Impact Research
Author · added in 4.107.0
Potsdam Institute for Climate Impact Research
Author · added in 5.24.7
Potsdam Institute for Climate Impact Research
Author · added in 7.4.3
Potsdam Institute for Climate Impact Research
Author · added in 6.13.1
Potsdam Institute for Climate Impact Research
Contributor
Potsdam Institute for Climate Impact Research
Contributor · added in 5.15.6
Potsdam Institute for Climate Impact Research
Contributor
Potsdam Institute for Climate Impact Research
Contributor
Contributor
Potsdam Institute for Climate Impact Research
Contributor · added in 6.8.2
Show 4 more contributorsHide 4 contributors
Contributor · added in 6.8.2
Potsdam Institute for Climate Impact Research
Contributor
Contributor · added in 4.107.0
Potsdam Institute for Climate Impact Research
Contributor · added in 4.39
Listed in earlier versions (2)
Benjamin Bodirsky
no longer listed · 3.74 to 4.51.1
Misko Stevanovic
no longer listed · 3.74 to 4.51.1
Releases (19)

Pick two releases to compare their code metrics.

  • 7.5.0Latest
    record
    2026-06-29 · current release · diff ↗
  • R
    R 4.6.0 released · 2026-04-24
  • 7.4.3
    record
    2026-04-17 · diff ↗ ·
    added 9 exports
    addDim, commonYears, extend, guessResolution, matchDim, mplot, sameDims, suppressSpecificWarnings, unitjoin
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • 6.13.2
    record
    2024-01-19 · diff ↗
  • 6.13.1
    record
    2024-01-14 · diff ↗ ·
    added 2 exports
    as.SpatRasterDataset, spatRasterToDataset
  • 6.10.0
    record
    2023-07-04 · diff ↗ ·
    added 1 export
    as.SpatVector
  • R
    R 4.3.0 released · 2023-04-21
  • 6.8.3
    record
    2023-04-05 · diff ↗
  • 6.8.2
    record
    2023-04-03 · diff ↗ ·
    added 2 exports
    as.SpatRaster, unitsplit
  • R
    R 4.2.0 released · 2022-04-22
  • 6.0.9
    record
    2021-09-30 · diff ↗ ·
    removed 16 exports
    getMetadata<-, are_units_convertible, calibrate_it, convert.report, getMetadata, install_magpie_units, lin.convergence, magpieComp, magpieResolution, mbind2, old_dim_convention, place_x_in_y, remind2magpie, set_magpie_units, updateMetadata, withMetadata
    added 1 export
    ndim
  • R
    R 4.1.0 released · 2021-05-18
  • 5.24.7
    record
    2021-02-25 · diff ↗ ·
    removed 1 export
    coord
    added 10 exports
    getCoords<-, getItems<-, as.RasterBrick, collapseDim, dimExists, getCoords, hasCoords, hasSets, maxample, setItems
  • 5.15.6
    record
    2020-12-14 · diff ↗ ·
    added 2 exports
    coord, replace_non_finite
Show 15 earlier eventsHide 15 earlier events
  • R
    R 4.0.0 released · 2020-04-24
  • 5.7.3
    record
    2020-03-02 · diff ↗
  • 5.7.0
    record
    2019-12-13 · diff ↗ ·
    added 1 export
    getDim
  • 5.5.1
    record
    2019-12-07 · diff ↗
  • 5.5.0
    record
    2019-12-06 · diff ↗ ·
    removed 1 export
    write.reportProject
  • 4.107.0
    record
    2019-05-29 · diff ↗ ·
    added 8 exports
    getMetadata<-, are_units_convertible, getMetadata, install_magpie_units, magpply, set_magpie_units, updateMetadata, withMetadata
  • R
    R 3.6.0 released · 2019-04-26
  • R
    R 3.5.0 released · 2018-04-23
  • 4.51.1
    record
    2017-09-06 · diff ↗ ·
    added 2 exports
    dimReduce, getItems
  • 4.39
    record
    2017-05-26 · diff ↗ ·
    removed 6 exports
    head.magpie, is.quitte, make.ISOyear, print.magpie, setNames, tail.magpie
    added 3 exports
    dimOrder, where, write.report2
  • R
    R 3.4.0 released · 2017-04-21
  • 3.85
    record
    2016-07-21 · diff ↗
  • R
    R 3.3.0 released · 2016-05-03
  • 3.74
    record
    2015-11-18
  • R
    R 3.2.0 released · 2015-04-16

Package metadata

First published
2015-11-18
Total releases
19 / 11 yrs
License
LGPL-3 | file LICENSE OSI
Additional repositories
pik-piam.r-universe.dev
Minimum R
≥ 2.10.0
Bundled data
1.3 KB / 1 file
Download size
338 KB
Appears in task views

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("magclass")

The package provides a citation file that builds its entry when R runs it. Run citation() to see it.

The repository also keeps a CITATION.cff.

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

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