R version 4.4.0 alpha (2024-04-01 r86264 ucrt) Copyright (C) 2024 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > 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 0 | WARN 0 | SKIP 2 | PASS 6 ] ══ Skipped tests (2) ═══════════════════════════════════════════════════════════ • On Windows (2): 'test-scDHA.R:2:3', 'test-scDHA.R:40:3' [ FAIL 0 | WARN 0 | SKIP 2 | PASS 6 ] > > Sys.unsetenv("IN_TEST_scDHA") > > proc.time() user system elapsed 3.00 0.29 3.28