tests/testthat.R

library(testthat)
library(scDHA)

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")

Sys.unsetenv("IN_TEST_scDHA")

Try the scDHA package in your browser

Any scripts or data that you put into this service are public.

scDHA documentation built on May 29, 2024, 4:51 a.m.