magclass
Data Class and Tools for Handling Spatial-Temporal Data
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
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)
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
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
package dependencies
Packages suggested but not available for checking: 'lpjmlkit', 'quitte'
package dependencies
Packages suggested but not available for checking: 'lpjmlkit', 'quitte'
package dependencies
Package suggested but not available for checking: 'quitte'
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
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
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
package dependencies
Packages suggested but not available for checking: 'lpjmlkit', 'quitte'
package dependencies
Packages suggested but not available for checking: 'lpjmlkit', 'quitte'
package dependencies
Package suggested but not available for checking: 'quitte'
NOTE 11 OK · 3 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026
package dependencies
Packages suggested but not available for checking: 'lpjmlkit', 'quitte'
package dependencies
Packages suggested but not available for checking: 'lpjmlkit', 'quitte'
package dependencies
Package suggested but not available for checking: 'quitte'