Installation failed.
See 'd:/Rcompile/CRANpkg/local/4.5/scDHA.Rcheck/00install.out' for details.
installed size is  6.4Mb
  sub-directories of 1Mb or more:
    data   3.2Mb
    libs   2.9Mb
installed size is  6.4Mb
  sub-directories of 1Mb or more:
    data   3.2Mb
    libs   2.8Mb
Installation failed.
See 'd:/Rcompile/CRANpkg/local/4.4/scDHA.Rcheck/00install.out' for details.
installed size is  7.4Mb
  sub-directories of 1Mb or more:
    data   4.1Mb
    libs   3.0Mb
Running ‘testthat.R’ [2s/3s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(scDHA)
  libtorch is not installed. Use `torch::install_torch()` to download and install libtorch
  > 
  > on_cran <- function() !identical(Sys.getenv("NOT_CRAN"), "true")
  > 
  > if((!torch::torch_is_installed()) & 
  +    (tolower(Sys.info()[["sysname"]]) != "windows") & 
  +    (!on_cran()))
  + {
  +   torch::install_torch()
  + }
  > 
  > Sys.setenv(IN_TEST_scDHA="true")
  > 
  > test_check("scDHA")
  [ FAIL 1 | WARN 0 | SKIP 2 | PASS 3 ]
  
  ══ Skipped tests (2) ═══════════════════════════════════════════════════════════
  • On CRAN (2): 'test-scDHA.R:3:3', 'test-scDHA.R:41:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-scDHA.R:21:3'): scDHA.vis can run ──────────────────────────────
  Error in `irlba::irlba(L, nv = n, nu = 0, maxit = iters)`: function 'as_cholmod_sparse' not provided by package 'Matrix'
  Backtrace:
      ▆
   1. └─scDHA::scDHA.vis(result, ncores = 2, seed = 1) at test-scDHA.R:21:3
   2.   └─uwot::umap(data, n_threads = ncores)
   3.     └─uwot:::uwot(...)
   4.       └─uwot:::spectral_init(V, ndim = n_components, verbose = verbose)
   5.         └─uwot:::irlba_tsvd_normalized_laplacian_init(A, ndim, verbose = FALSE)
   6.           └─uwot:::irlba_spectral_tsvd(L, ndim + 1)
   7.             ├─base::suppressWarnings(...)
   8.             │ └─base::withCallingHandlers(...)
   9.             └─irlba::irlba(L, nv = n, nu = 0, maxit = iters)
  
  [ FAIL 1 | WARN 0 | SKIP 2 | PASS 3 ]
  Error: Test failures
  Execution halted
installed size is  7.3Mb
  sub-directories of 1Mb or more:
    data   4.1Mb
    libs   2.9Mb
Installation failed.
See 'd:/Rcompile/CRANpkg/local/4.3/scDHA.Rcheck/00install.out' for details.