Last updated on 2024-12-18 19:49:47 CET.
Package | ERROR | OK |
---|---|---|
iGraphMatch | 1 | 12 |
Current CRAN status: ERROR: 1, OK: 12
Version: 2.0.5
Check: examples
Result: ERROR
Running examples in ‘iGraphMatch-Ex.R’ failed
The error most likely occurred in:
> ### Name: center_graph
> ### Title: Center adjacency matrix
> ### Aliases: center_graph
>
> ### ** Examples
>
> A <- sample_correlated_gnp_pair(n = 10, corr = .5, p = .5)$graph1
> center_graph(A, scheme = "naive")
10 x 10 sparse Matrix of class "dgCMatrix"
[1,] . 1 . . . 1 . 1 1 .
[2,] 1 . 1 . 1 1 1 . 1 .
[3,] . 1 . . 1 1 . . 1 .
[4,] . . . . . . . . . 1
[5,] . 1 1 . . . 1 1 1 .
[6,] 1 1 1 . . . 1 1 1 1
[7,] . 1 . . 1 1 . . 1 1
[8,] 1 . . . 1 1 . . . 1
[9,] 1 1 1 . 1 1 1 . . .
[10,] . . . 1 . 1 1 1 . .
> center_graph(A, scheme = "center")
Sparse part
10 x 10 sparse Matrix of class "dgCMatrix"
[1,] . 2 . . . 2 . 2 2 .
[2,] 2 . 2 . 2 2 2 . 2 .
[3,] . 2 . . 2 2 . . 2 .
[4,] . . . . . . . . . 2
[5,] . 2 2 . . . 2 2 2 .
[6,] 2 2 2 . . . 2 2 2 2
[7,] . 2 . . 2 2 . . 2 2
[8,] 2 . . . 2 2 . . . 2
[9,] 2 2 2 . 2 2 2 . . .
[10,] . . . 2 . 2 2 2 . .
plus left factor
10 x 1 Matrix of class "dgeMatrix"
[,1]
[1,] -1
[2,] -1
[3,] -1
[4,] -1
[5,] -1
[6,] -1
[7,] -1
[8,] -1
[9,] -1
[10,] -1
times right factor transpose
10 x 1 Matrix of class "dgeMatrix"
[,1]
[1,] 1
[2,] 1
[3,] 1
[4,] 1
[5,] 1
[6,] 1
[7,] 1
[8,] 1
[9,] 1
[10,] 1
> center_graph(A, scheme = 2)
Error in irlba::irlba(a, rank) :
function 'as_cholmod_sparse' not provided by package 'Matrix'
Calls: center_graph -> splr -> splr -> <Anonymous>
Execution halted
Flavor: r-oldrel-macos-arm64
Version: 2.0.5
Check: tests
Result: ERROR
Running ‘spelling.R’ [0s/0s]
Running ‘testthat.R’ [18s/19s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(iGraphMatch)
Thanks for using iGraphMatch!
We'd love to get feedback on what you like, what you don't like,
and how you are using the package.
See ?iGraphMatch for contact information.
>
> test_check("iGraphMatch")
Sparse part
10 x 10 sparse Matrix of class "dgCMatrix"
[1,] . . -0.77 . 1.4000 -0.15 . -0.32 -0.0076 0.55
[2,] -0.46 . -1.10 1.30 0.3400 . -0.160 . . -1.20
[3,] -1.10 . . . 0.0069 . . . . 0.56
[4,] -1.10 -1.10 . . . -0.37 . . 1.6000 .
[5,] -0.28 . . . . . . . -0.1800 .
[6,] -1.40 -0.97 -0.17 . . -1.00 -0.035 -0.19 -1.3000 2.50
[7,] . 0.85 . . -0.6700 -0.17 0.660 -0.72 . .
[8,] -1.40 . -0.47 -0.99 1.8000 0.70 . -0.58 . .
[9,] -0.86 . 0.26 . 0.6500 . . -1.80 . 2.10
[10,] . . . 1.60 . -0.40 -0.500 1.40 -0.5200 .
plus left factor
10 x 3 Matrix of class "dgeMatrix"
[,1] [,2] [,3]
[1,] 0.11613577 0.3100942 0.9830440
[2,] 0.30302180 0.7425694 0.6392046
[3,] 0.47880269 0.6389113 0.6607546
[4,] 0.34483055 0.9925160 0.5283594
[5,] 0.60071414 0.1282698 0.3174938
[6,] 0.07608332 0.8832396 0.7678555
[7,] 0.95599261 0.8100834 0.5263085
[8,] 0.02220682 0.8218512 0.7323019
[9,] 0.84171063 0.8347027 0.3076657
[10,] 0.63244245 0.7327322 0.4041733
times right factor transpose
10 x 3 Matrix of class "dgeMatrix"
[,1] [,2] [,3]
[1,] 0.2044024 0.47922247 0.5089206
[2,] 0.9856331 0.85031192 0.4944386
[3,] 0.5663108 0.42233068 0.7970529
[4,] 0.2803751 0.03139212 0.5669589
[5,] 0.1850557 0.25814665 0.1066968
[6,] 0.7580614 0.33484473 0.8076484
[7,] 0.5667813 0.13354967 0.5671121
[8,] 0.9321736 0.49954639 0.2122409
[9,] 0.6386933 0.80213563 0.7495793
[10,] 0.7007481 0.33715324 0.3072184
Sparse part
10 x 10 sparse Matrix of class "dgCMatrix"
[1,] . . -0.77 . 1.4000 -0.15 . -0.32 -0.0076 0.55
[2,] -0.46 . -1.10 1.30 0.3400 . -0.160 . . -1.20
[3,] -1.10 . . . 0.0069 . . . . 0.56
[4,] -1.10 -1.10 . . . -0.37 . . 1.6000 .
[5,] -0.28 . . . . . . . -0.1800 .
[6,] -1.40 -0.97 -0.17 . . -1.00 -0.035 -0.19 -1.3000 2.50
[7,] . 0.85 . . -0.6700 -0.17 0.660 -0.72 . .
[8,] -1.40 . -0.47 -0.99 1.8000 0.70 . -0.58 . .
[9,] -0.86 . 0.26 . 0.6500 . . -1.80 . 2.10
[10,] . . . 1.60 . -0.40 -0.500 1.40 -0.5200 .
plus left factor
10 x 3 Matrix of class "dgeMatrix"
[,1] [,2] [,3]
[1,] 0.11613577 0.3100942 0.9830440
[2,] 0.30302180 0.7425694 0.6392046
[3,] 0.47880269 0.6389113 0.6607546
[4,] 0.34483055 0.9925160 0.5283594
[5,] 0.60071414 0.1282698 0.3174938
[6,] 0.07608332 0.8832396 0.7678555
[7,] 0.95599261 0.8100834 0.5263085
[8,] 0.02220682 0.8218512 0.7323019
[9,] 0.84171063 0.8347027 0.3076657
[10,] 0.63244245 0.7327322 0.4041733
times right factor transpose
10 x 3 Matrix of class "dgeMatrix"
[,1] [,2] [,3]
[1,] 0.2044024 0.47922247 0.5089206
[2,] 0.9856331 0.85031192 0.4944386
[3,] 0.5663108 0.42233068 0.7970529
[4,] 0.2803751 0.03139212 0.5669589
[5,] 0.1850557 0.25814665 0.1066968
[6,] 0.7580614 0.33484473 0.8076484
[7,] 0.5667813 0.13354967 0.5671121
[8,] 0.9321736 0.49954639 0.2122409
[9,] 0.6386933 0.80213563 0.7495793
[10,] 0.7007481 0.33715324 0.3072184
splrMatrix
Dimension: 10 10
Lower rank matrix is rank: 3[ FAIL 2 | WARN 4 | SKIP 26 | PASS 152 ]
══ Skipped tests (26) ══════════════════════════════════════════════════════════
• On CRAN (25): 'test-Isorank.R:16:3', 'test-Isorank.R:23:3',
'test-Isorank.R:48:3', 'test-customized_gm_method.R:32:3',
'test-gm_PATH.R:32:3', 'test-gm_expand_when_stuck.R:11:3',
'test-graph_match_class.R:22:3', 'test-init_start.R:30:3',
'test-init_start.R:37:5', 'test-init_start.R:50:3', 'test-init_start.R:57:3',
'test-init_start.R:63:5', 'test-init_start.R:88:3',
'test-init_start.R:112:5', 'test-init_start.R:162:5', 'test-lap.R:61:5',
'test-perco.R:12:3', 'test-perco.R:20:3', 'test-perco.R:26:3',
'test-perco.R:38:3', 'test-perco.R:51:3', 'test-start.R:26:3',
'test-umeyama.R:17:3', 'test-umeyama.R:34:3', 'test-umeyama.R:51:3'
• empty test (1): 'test-start.R:16:1'
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-center-graph.R:49:3'): use splr ────────────────────────────────
Error in `irlba::irlba(A, ndim)`: function 'as_cholmod_sparse' not provided by package 'Matrix'
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test-center-graph.R:49:3
2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. ├─base::nrow(center_graph(A, scheme = 2, use_splr = FALSE))
5. └─iGraphMatch::center_graph(A, scheme = 2, use_splr = FALSE)
6. └─iGraphMatch:::low_rank_approx(A[], r)
7. └─irlba::irlba(A, ndim)
── Error ('test-center-graph.R:61:3'): padding ─────────────────────────────────
Error in `irlba::irlba(a, rank)`: function 'as_cholmod_sparse' not provided by package 'Matrix'
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test-center-graph.R:61:3
2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. ├─base::nrow(...)
5. ├─iGraphMatch::pad(...)
6. │ └─methods::is(m, "splrMatrix")
7. └─iGraphMatch::center_graph(A, scheme = 2, use_splr = TRUE)
8. ├─iGraphMatch::splr(x = A[], a = -A[], rank = r, factorize = TRUE)
9. └─iGraphMatch::splr(x = A[], a = -A[], rank = r, factorize = TRUE)
10. └─irlba::irlba(a, rank)
[ FAIL 2 | WARN 4 | SKIP 26 | PASS 152 ]
Error: Test failures
Execution halted
Flavor: r-oldrel-macos-arm64