Skip to content

magclass

Data Class and Tools for Handling Spatial-Temporal Data

v6.13.2 · Jan 18, 2024 · LGPL-3 | file LICENSE

Description

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).

Downloads

497

Last 30 days

7921st

2.2K

Last 90 days

13K

Last year

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

CRAN Check Status

4 ERROR
3 NOTE
7 OK
Show all 14 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang ERROR
r-devel-linux-x86_64-debian-gcc ERROR
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-macos-arm64 OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 NOTE
r-oldrel-macos-x86_64 NOTE
r-oldrel-windows-x86_64 NOTE
r-patched-linux-x86_64 ERROR
r-release-linux-x86_64 ERROR
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK
Check details (7 non-OK)
ERROR r-devel-linux-x86_64-debian-clang

tests

Running ‘testthat.R’ [32s/38s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(magclass)
  > 
  > test_check("magclass")
  Saving _problems/test-readwritemagpie-93.R
  [ FAIL 1 | WARN 0 | SKIP 2 | PASS 744 ]
  
  ══ Skipped tests (2) ═══════════════════════════════════════════════════════════
  • {quitte} is not installed (2): 'test-as.magpie.R:22:3',
    'test-as.magpie.R:63:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-readwritemagpie.R:93:3'): handling of spatial data works ───────
  Error in `.dimextract(x, i, 1, pmatch = pmatch, invert = invert)`: subscript out of bounds ("-67p25.83p25", "-69p75.82p75", "-69p25.82p75", "-68p75.82p75", "-68p25.82p75", "-67p75.82p75", "-67p25.82p75", "-66p75.82p75", "-71p25.82p25", "-70p75.82p25", "-70p25.82p25", "-69p75.82p25", "-69p25.82p25", "-68p75.82p25", "-68p25.82p25", "-67p75.82p25", "-67p25.82p25", "-66p75.82p25", "-66p25.82p25", 
...[truncated]...
"-66p25.65p75", "-65p75.65p75", "-62p25.65p75", "-61p75.65p75", "-61p25.65p75", "-60p75.65p75", "-60p25.65p75", "-59p75.65p75", "-59p25.65p75", "-58p75.65p75", "-58p25.65p75", "-57p75.65p75", "-66p75.65p25", "-66p25.65p25", "-65p75.65p25", "-65p25.65p25", "-63p25.65p25", "-62p75.65p25", "-62p25.65p25", "-61p75.65p25", "-61p25.65p25", "-60p75.65p25", "-60p25.65p25", "-59p75.65p25", "-59p25.65p25", "-58p75.65p25", "-58p25.65p25", "-57p75.65p25", "-71p25.64p75", "-65p25.64p75", "-64p75.64p75", "-64p25.64p75", "-63p75.64p75", "-63p25.64p75", "-62p75.64p75", "-62p25.64p75", "-61p75.64p75", "-61p25.64p75", "-60p75.64p75", "-60p25.6
  Backtrace:
      ▆
   1. ├─m05[getItems(m05in, dim = 1), , ] at test-readwritemagpie.R:93:3
   2. └─m05[getItems(m05in, dim = 1), , ]
   3.   └─magclass (local) .local(x, i, j, ..., drop = drop)
   4.     └─magclass:::.dimextract(x, i, 1, pmatch = pmatch, invert = invert)
  
  [ FAIL 1 | WARN 0 | SKIP 2 | PASS 744 ]
  Error:
  ! Test failures.
  Execution halted
ERROR r-devel-linux-x86_64-debian-gcc

tests

Running ‘testthat.R’ [21s/27s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(magclass)
  > 
  > test_check("magclass")
  Saving _problems/test-readwritemagpie-93.R
  [ FAIL 1 | WARN 0 | SKIP 2 | PASS 744 ]
  
  ══ Skipped tests (2) ═══════════════════════════════════════════════════════════
  • {quitte} is not installed (2): 'test-as.magpie.R:22:3',
    'test-as.magpie.R:63:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-readwritemagpie.R:93:3'): handling of spatial data works ───────
  Error in `.dimextract(x, i, 1, pmatch = pmatch, invert = invert)`: subscript out of bounds ("-67p25.83p25", "-69p75.82p75", "-69p25.82p75", "-68p75.82p75", "-68p25.82p75", "-67p75.82p75", "-67p25.82p75", "-66p75.82p75", "-71p25.82p25", "-70p75.82p25", "-70p25.82p25", "-69p75.82p25", "-69p25.82p25", "-68p75.82p25", "-68p25.82p25", "-67p75.82p25", "-67p25.82p25", "-66p75.82p25", "-66p25.82p25", 
...[truncated]...
"-66p25.65p75", "-65p75.65p75", "-62p25.65p75", "-61p75.65p75", "-61p25.65p75", "-60p75.65p75", "-60p25.65p75", "-59p75.65p75", "-59p25.65p75", "-58p75.65p75", "-58p25.65p75", "-57p75.65p75", "-66p75.65p25", "-66p25.65p25", "-65p75.65p25", "-65p25.65p25", "-63p25.65p25", "-62p75.65p25", "-62p25.65p25", "-61p75.65p25", "-61p25.65p25", "-60p75.65p25", "-60p25.65p25", "-59p75.65p25", "-59p25.65p25", "-58p75.65p25", "-58p25.65p25", "-57p75.65p25", "-71p25.64p75", "-65p25.64p75", "-64p75.64p75", "-64p25.64p75", "-63p75.64p75", "-63p25.64p75", "-62p75.64p75", "-62p25.64p75", "-61p75.64p75", "-61p25.64p75", "-60p75.64p75", "-60p25.6
  Backtrace:
      ▆
   1. ├─m05[getItems(m05in, dim = 1), , ] at test-readwritemagpie.R:93:3
   2. └─m05[getItems(m05in, dim = 1), , ]
   3.   └─magclass (local) .local(x, i, j, ..., drop = drop)
   4.     └─magclass:::.dimextract(x, i, 1, pmatch = pmatch, invert = invert)
  
  [ FAIL 1 | WARN 0 | SKIP 2 | PASS 744 ]
  Error:
  ! Test failures.
  Execution halted
NOTE r-oldrel-macos-arm64

package dependencies

Packages suggested but not available for checking: 'lpjmlkit', 'quitte'
NOTE r-oldrel-macos-x86_64

package dependencies

Packages suggested but not available for checking: 'lpjmlkit', 'quitte'
NOTE r-oldrel-windows-x86_64

package dependencies

Package suggested but not available for checking: 'quitte'
ERROR r-patched-linux-x86_64

tests

Running ‘testthat.R’ [28s/34s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(magclass)
  > 
  > test_check("magclass")
  Saving _problems/test-readwritemagpie-93.R
  [ FAIL 1 | WARN 0 | SKIP 2 | PASS 744 ]
  
  ══ Skipped tests (2) ═══════════════════════════════════════════════════════════
  • {quitte} is not installed (2): 'test-as.magpie.R:22:3',
    'test-as.magpie.R:63:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-readwritemagpie.R:93:3'): handling of spatial data works ───────
  Error in `.dimextract(x, i, 1, pmatch = pmatch, invert = invert)`: subscript out of bounds ("-67p25.83p25", "-69p75.82p75", "-69p25.82p75", "-68p75.82p75", "-68p25.82p75", "-67p75.82p75", "-67p25.82p75", "-66p75.82p75", "-71p25.82p25", "-70p75.82p25", "-70p25.82p25", "-69p75.82p25", "-69p25.82p25", "-68p75.82p25", "-68p25.82p25", "-67p75.82p25", "-67p25.82p25", "-66p75.82p25", "-66p25.82p25", 
...[truncated]...
"-66p25.65p75", "-65p75.65p75", "-62p25.65p75", "-61p75.65p75", "-61p25.65p75", "-60p75.65p75", "-60p25.65p75", "-59p75.65p75", "-59p25.65p75", "-58p75.65p75", "-58p25.65p75", "-57p75.65p75", "-66p75.65p25", "-66p25.65p25", "-65p75.65p25", "-65p25.65p25", "-63p25.65p25", "-62p75.65p25", "-62p25.65p25", "-61p75.65p25", "-61p25.65p25", "-60p75.65p25", "-60p25.65p25", "-59p75.65p25", "-59p25.65p25", "-58p75.65p25", "-58p25.65p25", "-57p75.65p25", "-71p25.64p75", "-65p25.64p75", "-64p75.64p75", "-64p25.64p75", "-63p75.64p75", "-63p25.64p75", "-62p75.64p75", "-62p25.64p75", "-61p75.64p75", "-61p25.64p75", "-60p75.64p75", "-60p25.6
  Backtrace:
      ▆
   1. ├─m05[getItems(m05in, dim = 1), , ] at test-readwritemagpie.R:93:3
   2. └─m05[getItems(m05in, dim = 1), , ]
   3.   └─magclass (local) .local(x, i, j, ..., drop = drop)
   4.     └─magclass:::.dimextract(x, i, 1, pmatch = pmatch, invert = invert)
  
  [ FAIL 1 | WARN 0 | SKIP 2 | PASS 744 ]
  Error:
  ! Test failures.
  Execution halted
ERROR r-release-linux-x86_64

tests

Running ‘testthat.R’ [28s/35s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(magclass)
  > 
  > test_check("magclass")
  Saving _problems/test-readwritemagpie-93.R
  [ FAIL 1 | WARN 0 | SKIP 2 | PASS 744 ]
  
  ══ Skipped tests (2) ═══════════════════════════════════════════════════════════
  • {quitte} is not installed (2): 'test-as.magpie.R:22:3',
    'test-as.magpie.R:63:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-readwritemagpie.R:93:3'): handling of spatial data works ───────
  Error in `.dimextract(x, i, 1, pmatch = pmatch, invert = invert)`: subscript out of bounds ("-67p25.83p25", "-69p75.82p75", "-69p25.82p75", "-68p75.82p75", "-68p25.82p75", "-67p75.82p75", "-67p25.82p75", "-66p75.82p75", "-71p25.82p25", "-70p75.82p25", "-70p25.82p25", "-69p75.82p25", "-69p25.82p25", "-68p75.82p25", "-68p25.82p25", "-67p75.82p25", "-67p25.82p25", "-66p75.82p25", "-66p25.82p25", 
...[truncated]...
"-66p25.65p75", "-65p75.65p75", "-62p25.65p75", "-61p75.65p75", "-61p25.65p75", "-60p75.65p75", "-60p25.65p75", "-59p75.65p75", "-59p25.65p75", "-58p75.65p75", "-58p25.65p75", "-57p75.65p75", "-66p75.65p25", "-66p25.65p25", "-65p75.65p25", "-65p25.65p25", "-63p25.65p25", "-62p75.65p25", "-62p25.65p25", "-61p75.65p25", "-61p25.65p25", "-60p75.65p25", "-60p25.65p25", "-59p75.65p25", "-59p25.65p25", "-58p75.65p25", "-58p25.65p25", "-57p75.65p25", "-71p25.64p75", "-65p25.64p75", "-64p75.64p75", "-64p25.64p75", "-63p75.64p75", "-63p25.64p75", "-62p75.64p75", "-62p25.64p75", "-61p75.64p75", "-61p25.64p75", "-60p75.64p75", "-60p25.6
  Backtrace:
      ▆
   1. ├─m05[getItems(m05in, dim = 1), , ] at test-readwritemagpie.R:93:3
   2. └─m05[getItems(m05in, dim = 1), , ]
   3.   └─magclass (local) .local(x, i, j, ..., drop = drop)
   4.     └─magclass:::.dimextract(x, i, 1, pmatch = pmatch, invert = invert)
  
  [ FAIL 1 | WARN 0 | SKIP 2 | PASS 744 ]
  Error:
  ! Test failures.
  Execution halted

Check History

ERROR 10 OK · 3 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Mar 30, 2026
ERROR r-devel-linux-x86_64-debian-gcc

tests

Running ‘testthat.R’ [20s/27s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(magclass)
  > 
  > test_check("magclass")
  Saving _problems/test-readwritemagpie-93.R
  [ FAIL 1 | WARN 0 | SKIP 2 | PA
...[truncated]...
05in, dim = 1), , ]
   3.   └─magclass (local) .local(x, i, j, ..., drop = drop)
   4.     └─magclass:::.dimextract(x, i, 1, pmatch = pmatch, invert = invert)
  
  [ FAIL 1 | WARN 0 | SKIP 2 | PASS 744 ]
  Error:
  ! Test failures.
  Execution halted
NOTE r-oldrel-macos-arm64

package dependencies

Packages suggested but not available for checking: 'lpjmlkit', 'quitte'
NOTE r-oldrel-macos-x86_64

package dependencies

Packages suggested but not available for checking: 'lpjmlkit', 'quitte'
NOTE r-oldrel-windows-x86_64

package dependencies

Package suggested but not available for checking: 'quitte'
NOTE 11 OK · 3 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026
NOTE r-oldrel-macos-arm64

package dependencies

Packages suggested but not available for checking: 'lpjmlkit', 'quitte'
NOTE r-oldrel-macos-x86_64

package dependencies

Packages suggested but not available for checking: 'lpjmlkit', 'quitte'
NOTE r-oldrel-windows-x86_64

package dependencies

Package suggested but not available for checking: 'quitte'

Reverse Dependencies (3)

depends

suggests

Dependency Network

Dependencies Reverse dependencies abind data.table madrat GDPuc gms magclass

Version History

new 6.13.2 Mar 10, 2026
updated 6.13.2 ← 6.13.1 diff Jan 18, 2024
updated 6.13.1 ← 6.10.0 diff Jan 13, 2024
updated 6.10.0 ← 6.8.3 diff Jul 3, 2023
updated 6.8.3 ← 6.8.2 diff Apr 4, 2023
updated 6.8.2 ← 6.0.9 diff Apr 2, 2023
updated 6.0.9 ← 5.24.7 diff Sep 29, 2021
updated 5.24.7 ← 5.15.6 diff Feb 24, 2021
updated 5.15.6 ← 5.7.3 diff Dec 13, 2020
updated 5.7.3 ← 5.7.0 diff Mar 1, 2020
updated 5.7.0 ← 5.5.1 diff Dec 12, 2019
updated 5.5.1 ← 5.5.0 diff Dec 6, 2019
updated 5.5.0 ← 4.107.0 diff Dec 5, 2019
updated 4.107.0 ← 4.51.1 diff May 28, 2019
updated 4.51.1 ← 4.39 diff Sep 5, 2017
updated 4.39 ← 3.85 diff May 25, 2017
updated 3.85 ← 3.74 diff Jul 20, 2016
new 3.74 Nov 17, 2015