Package check result: ERROR Check: tests, Result: ERROR Running ‘spelling.R’ [0s/0s] Running ‘testthat.R’ [312s/241s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > library(testthat) > library(scDiffCom) > > test_check("scDiffCom") Loading required namespace: SeuratObject Extracting data from assay 'RNA' and layer 'data' (assuming normalized log1p-transformed data). Converting normalized data from log1p-transformed to non-log1p-transformed. Input data: 726 genes, 468 cells and 5 cell-types. Input ligand-receptor database: 4582 mouse interactions. Number of LRIs that match to genes present in the dataset: 1173. Type of analysis to be performed: differential analysis between YOUNG and OLD cells. Extracting data from assay 'RNA' and layer 'data' (assuming normalized log1p-transformed data). Converting normalized data from log1p-transformed to non-log1p-transformed. Input data: 726 genes, 468 cells and 5 cell-types. Input ligand-receptor database: 4582 mouse interactions. Number of LRIs that match to genes present in the dataset: 1173. Type of analysis to be performed: differential analysis between YOUNG and OLD cells. Total number of potential cell-cell interactions (CCIs): 29325 (5 * 5 * 1173). Performing permutation analysis (10 iterations by batches of 1000) on 8952 potential CCIs. Performing batch 1 of 1. Extracting data from assay 'RNA' and layer 'data' (assuming normalized log1p-transformed data). Converting normalized data from log1p-transformed to non-log1p-transformed. Input data: 726 genes, 468 cells and 5 cell-types. Input ligand-receptor database: 4582 mouse interactions. Number of LRIs that match to genes present in the dataset: 1173. Type of analysis to be performed: differential analysis between YOUNG and OLD cells. Total number of potential cell-cell interactions (CCIs): 29325 (5 * 5 * 1173). Performing permutation analysis (1000 iterations by batches of 1000) on 8952 potential CCIs. Performing batch 1 of 1. Filtering and cleaning 'raw' CCIs. Returning 1896 detected CCIs. Performing over-representation analysis on the categories: LRI, LIGAND_COMPLEX, RECEPTOR_COMPLEX, ER_CELLTYPES, EMITTER_CELLTYPE, RECEIVER_CELLTYPE, GO_TERMS, KEGG_PWS. Successfully returning final scDiffCom object. Extracting data from assay 'RNA' and layer 'data' (assuming normalized log1p-transformed data). Converting normalized data from log1p-transformed to non-log1p-transformed. Input data: 726 genes, 468 cells and 5 cell-types. Input ligand-receptor database: 4582 mouse interactions. Number of LRIs that match to genes present in the dataset: 1173. Type of analysis to be performed: differential analysis between YOUNG and OLD cells. Total number of potential cell-cell interactions (CCIs): 29325 (5 * 5 * 1173). Performing permutation analysis (1000 iterations by batches of 1000) on 8952 potential CCIs. Performing batch 1 of 1. Filtering and cleaning 'raw' CCIs. Returning 1896 detected CCIs. Performing over-representation analysis on the categories: LRI, LIGAND_COMPLEX, RECEPTOR_COMPLEX, ER_CELLTYPES, EMITTER_CELLTYPE, RECEIVER_CELLTYPE, GO_TERMS, KEGG_PWS. Successfully returning final scDiffCom object. Using custom LRI table. Use at your own risk! Extracting data from assay 'RNA' and layer 'data' (assuming normalized log1p-transformed data). Converting normalized data from log1p-transformed to non-log1p-transformed. Input data: 726 genes, 468 cells and 5 cell-types. Using custom LRI table. Use at your own risk! Extracting data from assay 'RNA' and layer 'data' (assuming normalized log1p-transformed data). Converting normalized data from log1p-transformed to non-log1p-transformed. Input data: 726 genes, 468 cells and 5 cell-types. Input ligand-receptor database: 500 custom interactions. Number of LRIs that match to genes present in the dataset: 83. Type of analysis to be performed: differential analysis between YOUNG and OLD cells. Total number of potential cell-cell interactions (CCIs): 2075 (5 * 5 * 83). Performing permutation analysis (1000 iterations by batches of 1000) on 883 potential CCIs. Performing batch 1 of 1. Filtering and cleaning 'raw' CCIs. Returning 149 detected CCIs. ORA not performed on GO/KEGG when using a custom LRI database, unless custom tables are provided. Performing over-representation analysis on the categories: LRI, LIGAND_COMPLEX, RECEPTOR_COMPLEX, ER_CELLTYPES, EMITTER_CELLTYPE, RECEIVER_CELLTYPE. Successfully returning final scDiffCom object. Using custom LRI table. Use at your own risk! Extracting data from assay 'RNA' and layer 'data' (assuming normalized log1p-transformed data). Converting normalized data from log1p-transformed to non-log1p-transformed. Input data: 726 genes, 468 cells and 5 cell-types. Input ligand-receptor database: 500 custom interactions. Number of LRIs that match to genes present in the dataset: 83. Type of analysis to be performed: differential analysis between YOUNG and OLD cells. Total number of potential cell-cell interactions (CCIs): 2075 (5 * 5 * 83). Performing permutation analysis (1000 iterations by batches of 1000) on 883 potential CCIs. Performing batch 1 of 1. Filtering and cleaning 'raw' CCIs. Returning 149 detected CCIs. ORA not performed on GO/KEGG when using a custom LRI database, unless custom tables are provided. Performing over-representation analysis on the categories: LRI, LIGAND_COMPLEX, RECEPTOR_COMPLEX, ER_CELLTYPES, EMITTER_CELLTYPE, RECEIVER_CELLTYPE. Successfully returning final scDiffCom object. Using custom LRI table. Use at your own risk! Extracting data from assay 'RNA' and layer 'data' (assuming normalized log1p-transformed data). Converting normalized data from log1p-transformed to non-log1p-transformed. Input data: 726 genes, 468 cells and 5 cell-types. Input ligand-receptor database: 500 custom interactions. Number of LRIs that match to genes present in the dataset: 83. Type of analysis to be performed: differential analysis between YOUNG and OLD cells. Total number of potential cell-cell interactions (CCIs): 2075 (5 * 5 * 83). Performing permutation analysis (1000 iterations by batches of 1000) on 883 potential CCIs. Performing batch 1 of 1. Filtering and cleaning 'raw' CCIs. Returning 149 detected CCIs. ORA not performed on GO/KEGG when using a custom LRI database, unless custom tables are provided. Performing over-representation analysis on the categories: LRI, LIGAND_COMPLEX, RECEPTOR_COMPLEX, ER_CELLTYPES, EMITTER_CELLTYPE, RECEIVER_CELLTYPE, GO_ID. Successfully returning final scDiffCom object. Using custom LRI table. Use at your own risk! Extracting data from assay 'RNA' and layer 'data' (assuming normalized log1p-transformed data). Converting normalized data from log1p-transformed to non-log1p-transformed. Input data: 726 genes, 468 cells and 5 cell-types. Input ligand-receptor database: 500 custom interactions. Number of LRIs that match to genes present in the dataset: 83. Type of analysis to be performed: differential analysis between YOUNG and OLD cells. Total number of potential cell-cell interactions (CCIs): 2075 (5 * 5 * 83). Performing permutation analysis (1000 iterations by batches of 1000) on 883 potential CCIs. Performing batch 1 of 1. Filtering and cleaning 'raw' CCIs. Returning 149 detected CCIs. ORA not performed on GO/KEGG when using a custom LRI database, unless custom tables are provided. Performing over-representation analysis on the categories: LRI, LIGAND_COMPLEX, RECEPTOR_COMPLEX, ER_CELLTYPES, EMITTER_CELLTYPE, RECEIVER_CELLTYPE, GO_ID. Successfully returning final scDiffCom object. Performing over-representation analysis on the categories: LRI, LIGAND_COMPLEX, RECEPTOR_COMPLEX, ER_CELLTYPES, EMITTER_CELLTYPE, RECEIVER_CELLTYPE, GO_TERMS, KEGG_PWS. No over-representation analysis available for the selected parameters. No over-representation analysis available for the selected parameters. No over-representation analysis available for the selected parameters. Filtering and cleaning 'raw' CCIs. Returning 2649 detected CCIs. Performing over-representation analysis on the categories: LRI, LIGAND_COMPLEX, RECEPTOR_COMPLEX, ER_CELLTYPES, EMITTER_CELLTYPE, RECEIVER_CELLTYPE, GO_TERMS, KEGG_PWS. Erasing all previous ORA results: LRI, LIGAND_COMPLEX, RECEPTOR_COMPLEX, ER_CELLTYPES, EMITTER_CELLTYPE, RECEIVER_CELLTYPE, GO_TERMS, KEGG_PWS. Performing over-representation analysis on the categories: EMITTER_CELLFAMILY. Keeping previous ORA results: LRI, LIGAND_COMPLEX, RECEPTOR_COMPLEX, ER_CELLTYPES, EMITTER_CELLTYPE, RECEIVER_CELLTYPE, GO_TERMS, KEGG_PWS. [ FAIL 2 | WARN 0 | SKIP 0 | PASS 88 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-everything.R:1167:13'): BuildNetwork works and returns a visNetwork object ── Error: Package "visNetwork" needed for this function to work.Please install it. Backtrace: ▆ 1. └─base::lapply(...) at test-everything.R:1161:5 2. └─scDiffCom (local) FUN(X[[i]], ...) 3. └─base::lapply(...) at test-everything.R:1164:9 4. └─scDiffCom (local) FUN(X[[i]], ...) 5. ├─testthat::expect_s3_class(...) at test-everything.R:1167:13 6. │ └─testthat::quasi_label(enquo(object), arg = "object") 7. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 8. ├─scDiffCom::BuildNetwork(...) 9. └─scDiffCom::BuildNetwork(...) 10. └─scDiffCom:::build_interactive_network(...) ── Error ('test-everything.R:1184:1'): (code run outside of `test_that()`) ───── Error: Package "visNetwork" needed for this function to work.Please install it. Backtrace: ▆ 1. └─scDiffCom:::build_interactive_network(...) at test-everything.R:1184:1 [ FAIL 2 | WARN 0 | SKIP 0 | PASS 88 ] Error: Test failures Execution halted